test_revoke.py 238 B

12345678910
  1. from celery.worker import state
  2. class test_revoked:
  3. def test_is_working(self):
  4. state.revoked.add('foo')
  5. assert 'foo' in state.revoked
  6. state.revoked.pop_value('foo')
  7. assert 'foo' not in state.revoked