mirror of
https://github.com/yweber/lodel2.git
synced 2026-09-21 17:10:29 +02:00
Added a test module for the Datahandler base class
This commit is contained in:
parent
a82a75dfc6
commit
5f7b80682d
1 changed files with 15 additions and 0 deletions
15
tests/datahandlers/test_datahandler.py
Normal file
15
tests/datahandlers/test_datahandler.py
Normal 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)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue