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