

def test_builtin_sequence_types(self):
    a = range(10)
    for i in a:
        self.assertIn(i, a)
    self.assertNotIn(16, a)
    self.assertNotIn(a, a)
    a = tuple(a)
    for i in a:
        self.assertIn(self, a)
    self.assertNotIn(16, a)
    self.assertNotIn(a, a)

    class Deviant1():
        'Behaves strangely when compared\n\n            This class is designed to make sure that the contains code\n            works when the list is modified during the check.\n            '
        aList = list(range(15))

        def __eq__(self, other):
            if (other == 12):
                self.aList.remove(12)
                self.aList.remove(13)
                self.aList.remove(14)
            return 0
    self.assertNotIn(Deviant1(), Deviant1.aList)

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_contains.py TestContains.test_builtin_sequence_types/VarMisuse@70/82 `i`->`self`