Browse Source

Added a test module for the Datahandler base class

Roland Haroutiounian 8 years ago
parent
commit
5f7b80682d
1 changed files with 15 additions and 0 deletions
  1. 15
    0
      tests/datahandlers/test_datahandler.py

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

@@ -0,0 +1,15 @@
1
+import unittest
2
+
3
+from lodel.leapi.datahandlers.base_classes import DataHandler
4
+
5
+
6
+class DataHandlerTestCase(unittest.TestCase):
7
+
8
+    def test_init_abstract_class(self):
9
+        datahandler = None
10
+        try:
11
+            datahandler = DataHandler()
12
+        except NotImplementedError:
13
+            self.assertNotIsInstance(datahandler, DataHandler)
14
+            self.assertIsNone(datahandler)
15
+    

Loading…
Cancel
Save