def test_attributes_set_at_lower_level_not_visible_at_upper_level(self):
        self.context.thing = "stuff"

        self.context._push()
        self.context.other_thing = "more stuff"

        self.context._push()
        self.context.third_thing = "wombats"
        eq_(self.context.thing, "stuff")
        eq_(self.context.other_thing, "more stuff")
        eq_(self.context.third_thing, "wombats")

        self.context._pop()
        eq_(self.context.thing, "stuff")
        eq_(self.context.other_thing, "more stuff")
        assert getattr(self.context, "third_thing", None) is None, "%s is not None" % self.context.third_thing

        self.context._pop()
        eq_(self.context.thing, "stuff")
        assert getattr(self.context, "other_thing", None) is None, "%s is not None" % self.context.other_thing
        assert getattr(self.context, "third_thing", None) is None, "%s is not None" % self.context.third_thing
dataset/ETHPy150Open behave/behave/test/test_runner.py/TestContext.test_attributes_set_at_lower_level_not_visible_at_upper_level/original