Esempio n. 1
0
 def test_class_for_name(self):
     module, class_name = get_module_class_name_from_orient_class_name("tests___dot___orient_sql_tests___dot___ClassToInsert")
     klass = class_for_name(module, class_name)
     self.assertEqual(klass, ClassToInsert)
Esempio n. 2
0
 def test_get_module_class_name_from_orient_class_name(self):
     module, class_name = get_module_class_name_from_orient_class_name("tests___dot___orient_sql_tests___dot___ClassToInsert")
     self.assertEqual(module, 'tests.orient_sql_tests')
     self.assertEqual(class_name, 'ClassToInsert')