示例#1
0
 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
 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
 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
 def test_active_public(self):
     """ Select only active and public """
     self.assertEquals(10, len(list_public_users()))
示例#5
0
 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
 def test_active_public(self):
     """ Select only active and public """
     self.assertEquals(10, len(list_public_users()))