

def test_basic(self):
    self.assert_renders('{% load test_tags %}{% test_tag_1 for "alex" %}', Context(), 'alex')
    c = Context()
    self.assert_renders('{% load test_tags %}{% test_tag_1 for "brian" as name %}', c, '')
    c.assertEqual(c['name'], 'brian')
    self.assert_renders('{% load test_tags %}{% test_tag_1 for variable %}', Context({
        'variable': [1, 2, 3],
    }), '[1, 2, 3]')

dataset/ETHPy150Open alex/django-templatetag-sugar/templatetag_sugar/tests/tests.py SugarTestCase.test_basic/VarMisuse@40/99 `self`->`c`