Add python3 support
This commit is contained in:
@@ -26,12 +26,12 @@ class LazyDBTestCase(unittest.TestCase):
|
||||
def testDatabaseMethodForcingInit(self):
|
||||
db = TestDB()
|
||||
assert db.getTestField()
|
||||
assert db.__dict__.has_key("testfield")
|
||||
assert "testfield" in db.__dict__
|
||||
db._delete()
|
||||
|
||||
def testDatabaseWithoutInit(self):
|
||||
db = TestDB()
|
||||
assert not db.__dict__.has_key("testfield")
|
||||
assert "testfield" not in db.__dict__
|
||||
db._delete()
|
||||
|
||||
def testSingletonBehaviour(self):
|
||||
|
||||
Reference in New Issue
Block a user