From 782191573ed0e20d8556612e6a36be285f899b4c Mon Sep 17 00:00:00 2001 From: oyving Date: Fri, 27 May 2005 13:09:30 +0000 Subject: [PATCH] Modified to test for the load method. --- test/db_test.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/test/db_test.py b/test/db_test.py index 3afe250..41d2432 100644 --- a/test/db_test.py +++ b/test/db_test.py @@ -15,21 +15,21 @@ class mdbTest(TestCase): class connectTest(mdbTest): def test_0(self): - db = self.mdb.connect("inputs/db-0/") + db = self.mdb.connect("inputs/db-legal-00/") self.failUnless(db.__class__ == self.mdb.db.PVVDB) class disconnectTest(mdbTest): def test_0(self): - db = self.mdb.connect("inputs/db-0/") + db = self.mdb.connect("inputs/db-legal-00/") self.mdb.disconnect(db) class formatTest(mdbTest): def test_0(self): - db = self.mdb.connect("inputs/db-0/") + db = self.mdb.connect("inputs/db-legal-00/") format = db._PVVDB__format("inputs/format-legal-00") self.failUnless(format['username'] == 'scalar' and format['realname'] == 'scalar' and @@ -40,6 +40,12 @@ class formatTest(mdbTest): format['purged'] == 'scalar' and format['membership'] == 'list') +class loadTest(mdbTest): + + def test_0(self): + db = self.mdb.connect("inputs/db-legal-00/") + user = db.load("user1") + self.failUnless(user) # # Run the library tests.