Пример #1
0
 def test_param2id_not_uuid_like_without_dash(self):
     obj_id = '123'
     self.assertEqual(123, manila_manage.param2id(obj_id))
Пример #2
0
 def test_param2id_not_uuid_like_with_dash(self):
     obj_id = '112-112-112'
     self.assertIsNone(manila_manage.param2id(obj_id))
Пример #3
0
 def test_param2id_is_uuid_like(self):
     obj_id = '12345678123456781234567812345678'
     self.assertEqual(obj_id, manila_manage.param2id(obj_id))
Пример #4
0
 def test_param2id_not_uuid_like_without_dash(self):
     obj_id = '123'
     self.assertEqual(123, manila_manage.param2id(obj_id))
Пример #5
0
 def test_param2id_not_uuid_like_with_dash(self):
     obj_id = '112-112-112'
     self.assertIsNone(manila_manage.param2id(obj_id))
Пример #6
0
 def test_param2id_is_uuid_like(self):
     obj_id = '12345678123456781234567812345678'
     self.assertEqual(obj_id, manila_manage.param2id(obj_id))