def run(self, cmd):
        # TODO: can this be removed ?
        import __main__
        main_dict = __main__.__dict__
        return self.runctx(cmd, main_dict, main_dict)
Assert that a newer middleware behaves as appropriate.
dataset/ETHPy150Open fabianp/memory_profiler/memory_profiler.py/LineProfiler.run--crossover with--dataset/ETHPy150Open openstack/oslo.middleware/oslo_middleware/tests/test_base.py/TestBase.test_extend_with_request