def test_cred_exists(self): ''' test to check if we can return a Boolean if we cannot find the user's credentials. ''' self.new_cred.save_cred() test_cred = Cred("facebook", "*****@*****.**", "Bart-Menz", "!Bmenz@fb") test_cred.save_cred() cred_exists = Cred.cred_exists("facebook") self.assertTrue(cred_exists)
def check_existing_cred(accountName): ''' Function that check if credentials exist with that accountName and return a Boolean ''' return Cred.cred_exists(accountName)