From 685208ccd5b88ee0efb805910c30ff253f4e8b0e Mon Sep 17 00:00:00 2001 From: John Anderson Date: Thu, 5 Jul 2012 09:52:18 -0500 Subject: [PATCH] added test_interfaces --- hem/tests/test_interfaces.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 hem/tests/test_interfaces.py 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)