def test_Group_created_by(self):
        """
	Tests the Group_created_by function to see if it returns the correct username
        """
        with project.app.app_context():
            self.assertEqual(
                Group.Group_created_by('TestGroup')[0], 'adminTest2')
Ejemplo n.º 2
0
def Group_created_by(Groupname):
    """Gets the name of the user that created the group
                Args:
                        Groupname - String - the name of the group
                Return:
                        Usename of the group creator 
        """
    return Group.Group_created_by(Groupname)