

def test_context(self):
    c = Context({
        'a': 1,
        'b': 'xyzzy',
    })
    self.assertEqual(c['a'], 1)
    self.assertEqual(c.push(), {
        
    })
    c['a'] = 2
    self.assertEqual(c['a'], 2)
    self.assertEqual(c.get('a'), 2)
    c.assertEqual(c.pop(), {
        'a': 2,
    })
    self.assertEqual(c['a'], 1)
    self.assertEqual(c.get('foo', 42), 42)

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/templates/context.py ContextTests.test_context/VarMisuse@90/111 `self`->`c`