1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-09-21 09:00:28 +02:00

Added a test module for the Datahandler base class

This commit is contained in:
Roland Haroutiounian 2016-08-24 11:58:18 +02:00
commit 5f7b80682d

View file

@ -0,0 +1,15 @@
import unittest
from lodel.leapi.datahandlers.base_classes import DataHandler
class DataHandlerTestCase(unittest.TestCase):
def test_init_abstract_class(self):
datahandler = None
try:
datahandler = DataHandler()
except NotImplementedError:
self.assertNotIsInstance(datahandler, DataHandler)
self.assertIsNone(datahandler)