

def test_nonreflexive(self):

    class MyNonReflexive(object):

        def __eq__(self, other):
            return False

        def __hash__(self):
            return 28
    values = (float('nan'), 1, None, 'abc', MyNonReflexive())
    constructors = (list, tuple, dict.fromkeys, set, frozenset, deque)
    for constructor in constructors:
        container = constructor(values)
        for elem in container:
            self.assertIn(elem, container)
        self.assertTrue((container == constructor(values)))
        container.assertTrue((container == container))

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_contains.py TestContains.test_nonreflexive/VarMisuse@130/159 `self`->`container`