|
|
|
|
312
|
self.assertNotEqual(cls, False, "emclass_from_name return False when '%s' given as parameter" % classname)
|
312
|
self.assertNotEqual(cls, False, "emclass_from_name return False when '%s' given as parameter" % classname)
|
313
|
self.assertEqual(cls.__name__, classname)
|
313
|
self.assertEqual(cls.__name__, classname)
|
314
|
|
314
|
|
315
|
- for classname in ['EmComponent', 'EmFoobar']:
|
|
|
|
|
315
|
+ for classname in ['EmComponent', 'EmFoobar', int, EmClass]:
|
316
|
self.assertFalse(Model.emclass_from_name(classname))
|
316
|
self.assertFalse(Model.emclass_from_name(classname))
|
317
|
|
317
|
|
318
|
for comp_cls in [EmClass, EmFieldGroup, EmType]:
|
318
|
for comp_cls in [EmClass, EmFieldGroup, EmType]:
|