瀏覽代碼

Added 2 invalid params for emclass_from_name() method

Yann Weber 9 年之前
父節點
當前提交
abb700b0c0
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      EditorialModel/test/test_model.py

+ 1
- 1
EditorialModel/test/test_model.py 查看文件

@@ -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…
取消
儲存