コード例 #1
0
ファイル: test_models.py プロジェクト: sarutobi/Rynda
 def test_not_public(self):
     """ Do not show active users without public flag """
     u = UserFactory(is_active=True)
     u.profile.is_public = False
     u.profile.save()
     u.save()
     self.assertEquals(10, len(list_public_users()))
コード例 #2
0
ファイル: test_models.py プロジェクト: Teplitsa/Rynda
 def test_not_public(self):
     """ Do not show active users without public flag """
     u = UserFactory(is_active=True)
     u.profile.is_public = False
     u.profile.save()
     u.save()
     self.assertEquals(10, len(list_public_users()))
コード例 #3
0
ファイル: test_models.py プロジェクト: sarutobi/Rynda
 def test_not_active(self):
     u = UserFactory(is_active=False)
     u.profile.is_public = True
     u.profile.save()
     self.assertEquals(10, len(list_public_users()))
コード例 #4
0
ファイル: test_models.py プロジェクト: sarutobi/Rynda
 def test_active_public(self):
     """ Select only active and public """
     self.assertEquals(10, len(list_public_users()))
コード例 #5
0
ファイル: test_models.py プロジェクト: Teplitsa/Rynda
 def test_not_active(self):
     u = UserFactory(is_active=False)
     u.profile.is_public = True
     u.profile.save()
     self.assertEquals(10, len(list_public_users()))
コード例 #6
0
ファイル: test_models.py プロジェクト: Teplitsa/Rynda
 def test_active_public(self):
     """ Select only active and public """
     self.assertEquals(10, len(list_public_users()))