def METHOD_NAME(self):
    with self.mock_modules('top_level') as mock:
        with util.import_state(meta_path=[mock]):
            del mock['top_level'].__package__
            module = self.__import__('top_level')
            self.assertEqual(module.__package__, '')