

def test_resolve_on_context_method(self):
    empty_context = Context()
    self.assertRaises(VariableDoesNotExist, Variable('no_such_variable').resolve, empty_context)
    self.assertRaises(VariableDoesNotExist, Variable('new').resolve, empty_context)
    empty_context.assertEqual(Variable('new').resolve(Context({
        'new': 'foo',
    })), 'foo')

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/tests/template_tests/test_context.py ContextTests.test_resolve_on_context_method/VarMisuse@48/75 `self`->`empty_context`