|
@@ -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
|
+
|