/usr/lib/python3/dist-packages/rstr/tests/test_package_level_access.py is in python3-rstr 2.2.6-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 | import unittest
import re
import rstr
class TestPackageLevelFunctions(unittest.TestCase):
def test_rstr(self):
assert re.match(r'^[ABC]+$', rstr.rstr('ABC'))
def test_xeger(self):
assert re.match(r'^foo[\d]{10}bar$', rstr.xeger('^foo[\d]{10}bar$'))
def test_convenience_function(self):
assert re.match(r'^[a-zA-Z]+$', rstr.letters())
|