

def test_call(self):
    my_filter = NotOnValue('function', 'bar')
    record = MockRecord('foo', 'bar.py', 3)
    self.assertTrue(my_filter(record))
    record = MockRecord('bar', 'foo.py', 7)
    self.assertFalse(my_filter(record))
    my_filter = NotOnValue('filename', 'bar.py', 'foo.py')
    record = MockRecord('foo', 'bar.py', 3)
    self.assertFalse(my_filter(self))
    record = MockRecord('f', 'foo.py', 3)
    self.assertFalse(my_filter(record))
    record = MockRecord('f', 'non_foo.py', 3)
    self.assertTrue(my_filter(record))

dataset/ETHPy150Open enthought/pikos/pikos/tests/test_not_on_value.py TestNotOnValue.test_call/VarMisuse@89/143 `record`->`self`