17 lines
468 B
Python
Raw Normal View History

2013-09-02 23:42:41 -04:00
2013-09-03 14:37:34 +03:00
import manilaclient.client
import manilaclient.v1.client
2013-09-10 08:11:02 -04:00
2013-09-02 23:42:41 -04:00
from tests import utils
class ClientTest(utils.TestCase):
def test_get_client_class_v1(self):
2013-09-03 14:37:34 +03:00
output = manilaclient.client.get_client_class('1')
self.assertEqual(output, manilaclient.v1.client.Client)
2013-09-02 23:42:41 -04:00
def test_get_client_class_unknown(self):
2013-09-03 14:37:34 +03:00
self.assertRaises(manilaclient.exceptions.UnsupportedVersion,
manilaclient.client.get_client_class, '0')