def METHOD_NAME(self):
    modules = ['a.__init__', 'a.b.__init__', 'a.b.c.__init__', 'a.b.c.d']
    with mock_modules(*modules) as mock:
        with import_state(meta_path=[mock]):
            module = importlib.import_module('.d', 'a.b.c')
            self.assertEqual(module.__name__, 'a.b.c.d')