def test_bytes(self):
        """
        L{filenameToModuleName} returns the correct module given a C{bytes}
        path to its file.
        """
        module = reflect.filenameToModuleName(
            os.path.join(self.path.encode("utf-8"), b'test_reflect.py'))
        # Module names are always native string:
        self.assertEqual(module, 'fakepackage.test.test_reflect')

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