def METHOD_NAME(self):
    # [module]
    with util.mock_modules('pkg.__init__', 'pkg.module') as importer:
        with util.import_state(meta_path=[importer]):
            module = self.__import__('pkg', fromlist=['module'])
            self.assertEqual(module.__name__, 'pkg')
            self.assertTrue(hasattr(module, 'module'))
            self.assertEqual(module.module.__name__, 'pkg.module')