def test_file(self):
        """
        L{filenameToModuleName} returns the correct module given the path to
        its file.
        """
        module = reflect.filenameToModuleName(
            os.path.join(self.path, 'test_reflect.py'))
        self.assertEqual(module, 'fakepackage.test.test_reflect')

        L{filenameToModuleName} returns the correct module given the path to
        its file.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_reflect.py