def test_profile_existing(self): """Test the output of profile templatetag if profile does exist.""" p = G(Profile, user=self.user) self.assertEqual(p, profile(self.user))
def test_profile_none(self): """Test the output of profile templatetag if profile does not exist.""" self.assertEqual(None, profile(self.user))