def assertModuleWrapperRefersTo(self, moduleWrapper, module):
        """
        Assert that a L{twisted.python.modules.PythonModule} refers to a
        particular Python module.
        """
        self.assertIsInstance(moduleWrapper, self.PythonModule)
        self.assertEqual(moduleWrapper.name, module.__name__)
        self.assertIs(moduleWrapper.load(), module)

        Assert that a L{twisted.python.modules.PythonModule} refers to a
        particular Python module.
        
stackoverflow/venv/lib/python3.6/site-packages/automat/_test/test_discover.py