Beispiel #1
0
    def test_User_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the contact.
        '''

        self.new_User.save_User()
        test_User = User("", "", "", "")
        test_User.save_User()

        User_exists = User.User_exist("")

        self.assertTrue(User_exists)
Beispiel #2
0
def check_existing_User(username):
    '''
    Function that check if a user exists with that username and return a Boolean
    '''
    return User.User_exist(username)