Example #1
0
    def test_delete_segment(self):
        user = UserFactory()
        segment = AllUserSegmentFactory()
        self.assertTrue(segment.has_member(user))

        segment.delete()
        self.assertFalse(segment.has_member(user))
Example #2
0
 def test_delete_segment(self, p_redis_sadd, p_rsm):
     s = AllUserSegmentFactory()
     s.delete()
     self.assertTrue(p_redis_sadd.called)
     self.assertTrue(p_rsm.called)
Example #3
0
 def test_delete_segment(self, p_redis_sadd, p_rsm):
     s = AllUserSegmentFactory()
     s.delete()
     self.assertTrue(p_redis_sadd.called)
     self.assertTrue(p_rsm.called)