diff options
author | Jenkins <jenkins@review.openstack.org> | 2012-05-21 16:32:35 -0400 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2012-05-21 16:32:35 -0400 |
commit | 471704df644eced17026c280b0aab9e549718e14 (patch) | |
tree | c2d8d0ec74fa45e0b61ca4b2153fb5b0e7bf490d /tests/test_client.py | |
download | python-cinderclient-0.0.tar.gz |
Initial split from python-novaclient.0.0
Diffstat (limited to 'tests/test_client.py')
-rw-r--r-- | tests/test_client.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/test_client.py b/tests/test_client.py new file mode 100644 index 0000000..f5e4bab --- /dev/null +++ b/tests/test_client.py @@ -0,0 +1,18 @@ + +import cinderclient.client +import cinderclient.v1.client +from tests import utils + + +class ClientTest(utils.TestCase): + + def setUp(self): + pass + + def test_get_client_class_v1(self): + output = cinderclient.client.get_client_class('1') + self.assertEqual(output, cinderclient.v1.client.Client) + + def test_get_client_class_unknown(self): + self.assertRaises(cinderclient.exceptions.UnsupportedVersion, + cinderclient.client.get_client_class, '0') |