Exemplo n.º 1
0
 def test_profile_exist(self):
     """
     test profile exists to check if there is another identical profile
     """
     test_profile1 = Credential("github","musyoka","*****@*****.**")
     test_profile1.save_profile()
     prof = test_profile1.check_profile_exist("github","musyoka","*****@*****.**")
     self.assertTrue(prof)
Exemplo n.º 2
0
 def test_profile_exist(self):
     """
     test_profile_exist to check if there is another matching or similar profile
     """
     test_profile1 = Credential("twitter", "Marion", "*****@*****.**")    
     test_profile1.save_profile()
     profile = test_profile1.check_profile_exist("twitter", "Marion", "*****@*****.**")
     self.assertTrue(profile)
Exemplo n.º 3
0
def check_prof_exist(prof_name, prof_username=None, prof_email=None):
    return Credential.check_profile_exist(prof_name,
                                          prof_username=None,
                                          prof_email=None)