def METHOD_NAME(self):
    with test_util.uncache(TestingImporter.module_name):
        fresh_module = types.ModuleType(TestingImporter.module_name)
        sys.modules[TestingImporter.module_name] = fresh_module
        module = self.new_module()
        with self.assertRaisesRegex(ValueError, "substituted"):
            module.__name__