test_revoke.py 296 B

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