Beispiel #1
0
 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))
Beispiel #2
0
 def test_profile_none(self):
     """Test the output of profile templatetag if profile does not exist."""
     self.assertEqual(None, profile(self.user))