Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added test_interfaces
  • Loading branch information
sontek committed Jul 5, 2012
1 parent 9e12cc6 commit 685208c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 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)

0 comments on commit 685208c

Please sign in to comment.