def test_filter(self):
        records = [
            DummyRecord(5, 'pikos', 'apikos'),
            DummyRecord(12, 'emilios', 'milo')]
        output = 'one two three\n-------------\n12 emilios milo\n'

        def not_pikos(values):
            return not (values in 'pikos')

        recorder = TextStreamRecorder(self.temp, filter_=not_pikos)
        recorder.prepare(DummyRecord)
        for record in records:
            recorder.record(record)
        self.assertMultiLineEqual(self.temp.getvalue(), output)
dataset/ETHPy150Open enthought/pikos/pikos/tests/test_text_stream_recorder.py/TestTextStreamRecorder.test_filter/swapped operands of `in`