/usr/lib/python3/dist-packages/celery/tests/worker/test_revoke.py is in python3-celery 3.1.13-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | from __future__ import absolute_import
from celery.worker import state
from celery.tests.case import AppCase
class test_revoked(AppCase):
def test_is_working(self):
state.revoked.add('foo')
self.assertIn('foo', state.revoked)
state.revoked.pop_value('foo')
self.assertNotIn('foo', state.revoked)
|