Пример #1
0
 def test_has_profile_for_user_with_profile(self):
     """
     If profile exists for user passed as argument return True
     """
     has_profile_status = has_profile(self.user2)
     self.assertTrue(has_profile_status)
Пример #2
0
 def test_has_profile_for_user_with_profile(self):
     """
     If profile exists for user passed as argument return True
     """
     has_profile_status = has_profile(self.user2)
     self.assertTrue(has_profile_status)
Пример #3
0
 def test_has_profile_for_user_without_profile(self):
     """
     If no profile exists for user passed as argument return False
     """
     has_profile_status = has_profile(self.user1)
     self.assertFalse(has_profile_status)
Пример #4
0
 def test_has_profile_for_user_without_profile(self):
     """
     If no profile exists for user passed as argument return False
     """
     has_profile_status = has_profile(self.user1)
     self.assertFalse(has_profile_status)