/usr/lib/python2.7/dist-packages/celery/tests/security/case.py is in python-celery 3.1.20-1.
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 14 15 16 | from __future__ import absolute_import
from celery.tests.case import AppCase, SkipTest
import sys
class SecurityCase(AppCase):
def setup(self):
if sys.version_info[0] == 3:
raise SkipTest('PyOpenSSL does not work on Python 3')
try:
from OpenSSL import crypto # noqa
except ImportError:
raise SkipTest('OpenSSL.crypto not installed')
|