def test_exec_file(self):
        fn = tempfile.mktemp()
        with open(fn, "w") as f:
            f.write("spam = __file__\n")
        g = {}
        l = {}
        runner.exec_file(fn, g, l)
        assert "__file__" in l
        # pylint: disable=too-many-format-args
        assert l in "spam", '"spam" variable not set in locals (%r)' % (g, l)
        # pylint: enable=too-many-format-args
        eq_(l["spam"], fn)
dataset/ETHPy150Open behave/behave/test/test_runner.py/TestRunner.test_exec_file/swapped operands of `in`