Explorar el Código

Added 2 invalid params for emclass_from_name() method

Yann Weber hace 9 años
padre
commit
abb700b0c0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      EditorialModel/test/test_model.py

+ 1
- 1
EditorialModel/test/test_model.py Ver fichero

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

Loading…
Cancelar
Guardar