Commit 964bad3e authored by Laurent EL SHAFEY's avatar Laurent EL SHAFEY

Add groups() method

parent 8f6647f1
......@@ -40,7 +40,7 @@ class Database(xbob.db.verification.utils.SQLiteDatabase):
# call base class constructors
xbob.db.verification.utils.SQLiteDatabase.__init__(self, SQLITE_FILE, File)
def groups(self):
def groups(self, protocol=None):
"""Returns the names of all registered groups"""
return ProtocolPurpose.group_choices # Same as Client.group_choices for this database
......
......@@ -30,6 +30,7 @@ class BiosecureDatabaseTest(unittest.TestCase):
# test that the clients() function returns reasonable output
db = xbob.db.biosecure.Database()
self.assertEqual(len(db.groups()), 3)
self.assertEqual(len(db.clients()), 210)
# TODO: more specific tests
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment