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)
示例#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)
示例#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)