Browse Source

Begun writing LeobjectSubclassIdentifier tests

Quentin Bonaventure 8 years ago
parent
commit
dc20830729
1 changed files with 15 additions and 0 deletions
  1. 15
    0
      tests/datahandlers/test_leobjectsubclassidentifier.py

+ 15
- 0
tests/datahandlers/test_leobjectsubclassidentifier.py View File

@@ -0,0 +1,15 @@
1
+import unittest
2
+from unittest import mock 
3
+from unittest.mock import patch
4
+
5
+import leapi_dyncode as dyncode
6
+
7
+from lodel.leapi.datahandlers.datas import LeobjectSubclassIdentifier
8
+from lodel.plugins.dummy_datasource.datasource import DummyDatasource
9
+
10
+
11
+class LeobjectSubclassIdentifierTestCase(unittest.TestCase):
12
+    
13
+    def test_throws_error_if_not_internal(self):
14
+        self.failUnlessRaises(RuntimeError, LeobjectSubclassIdentifier, internal=False)
15
+        

Loading…
Cancel
Save