diff --git a/hem/tests/test_interfaces.py b/hem/tests/test_interfaces.py new file mode 100644 index 0000000..e6e0c3f --- /dev/null +++ b/hem/tests/test_interfaces.py @@ -0,0 +1,11 @@ +import unittest + +class TestInterfaces(unittest.TestCase): + def test_dbsession(self): + """ Shouldn't be able to instantiate the interface """ + from hem.interfaces import IDBSession + + def make_session(): + IDBSession('1') + + self.assertRaises(TypeError, make_session)