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)
Esempio n. 2
0
def check_existence(name):
    return Credentials.check_if_exists(name)