예제 #1
0
    def test_userdata_exists(self):
        '''
        Testing if method for checking userdata works
        '''
        self.new_userdata.save_website()
        test_userdata = UserData(1,"Michel","twitter.com","yolo")
        test_userdata.save_website()

        userdata_exists = UserData.existing_userdata("Michel")
        self.assertTrue(userdata_exists)
예제 #2
0
def userdata_existing(userdata):
    '''
    Function that checks if userdata exists 
    '''
    return UserData.existing_userdata(userdata)