def test_whether_credential_exist(self): """ test to check if credential exist """ self.new_credential.save_credential() another_credential = Credentials("facebook", "jojoOne","7891011") another_credential.save_credential() present_credential = another_credential.check_if_exists("facebook") self.assertTrue(present_credential)
def check_existence(name): return Credentials.check_if_exists(name)