def test_push(self): """ Test push(). """ key = "foo" context = Context({key: "bar"}) self.assertEqual(context.get(key), "bar") context.push({key: "buzz"}) self.assertEqual(context.get(key), "buzz")
def test_push(self): """ Test push(). """ key = "foo" context = Context({key: "bar"}) self.assertEquals(context.get(key), "bar") context.push({key: "buzz"}) self.assertEquals(context.get(key), "buzz")