

def test_sort_list_of_tuples(self):
    data = [('a', '42'), ('c', 'string'), ('b', 'foo')]
    expected = [('a', '42'), ('b', 'foo'), ('c', 'string')]
    self.assertEqual(dictsort(self, 0), expected)

dataset/ETHPy150Open django/django/tests/template_tests/filter_tests/test_dictsort.py FunctionTests.test_sort_list_of_tuples/VarMisuse@60/91 `data`->`self`