def METHOD_NAME(self):
    # [bad object]
    with util.mock_spec('module') as importer:
        with util.import_state(meta_path=[importer]):
            module = self.__import__('module', fromlist=['non_existent'])
            self.assertEqual(module.__name__, 'module')
            self.assertFalse(hasattr(module, 'non_existent'))