def test_delta_removed(self): self.delta.status = 'removed_abuse' self.delta.put() assert bot._query_user_deltas('john').count() == 0
def test_delta_not_removed(self): self.delta.status = None self.delta.put() assert bot._query_user_deltas('john').count() == 1