def getGroupId(groupName): """This function gets a group id number args: name String the group name Return: GroupId Int the group id number """ return Group.getGroupId(str(groupName))
def test_getGroupId(self): """ Tests the getGroupId function to see if it returns the correct id """ with project.app.app_context(): self.assertEqual(Group.getGroupId('TestGroup')[0], 1)