コード例 #1
0
 def test_profile_existing(self):
     '''Test the output of profile templatetag if profile does exist'''
     user = G(User)
     p = G(Profile, user=user)
     self.assertEqual(p, profile(user))
コード例 #2
0
ファイル: templatetags_tests.py プロジェクト: AJseesit/resrc
 def test_profile_existing(self):
     '''Test the output of profile templatetag if profile does exist'''
     user = G(User)
     p = G(Profile, user=user)
     self.assertEqual(p, profile(user))
コード例 #3
0
 def test_profile_none(self):
     '''Test the output of profile templatetag if profile does not exist'''
     user = G(User)
     self.assertEqual(None, profile(user))
コード例 #4
0
ファイル: templatetags_tests.py プロジェクト: AJseesit/resrc
 def test_profile_none(self):
     '''Test the output of profile templatetag if profile does not exist'''
     user = G(User)
     self.assertEqual(None, profile(user))