/usr/lib/python2.7/dist-packages/nose2/tests/functional/test_util.py is in python-nose2 0.5.0-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 | from nose2.tests._common import TestCase, support_file
from nose2 import util
class UtilTests(TestCase):
def test_name_from_path(self):
self.assertEqual(
util.name_from_path(support_file('scenario/tests_in_package/pkg1/test/test_things.py')), 'pkg1.test.test_things')
|