def test_ignoredir(self):
        r = self.invoke(main, ['-l', 'class'])
        output = r.output_bytes.splitlines()

        self.assertEqual(r.exit_code, 0)
        self.assertTrue(any(p in 'ignoredir' for p in output))

        r = self.invoke(main, ['-l', 'class', '--ignore-dir', 'ignoredir'])
        output = r.output_bytes.splitlines()

        self.assertEqual(r.exit_code, 0)
        self.assertFalse(any('ignoredir' in p for p in output))
dataset/ETHPy150Open caioariede/pyq/test_cmd.py/TestASTMatchEngine.test_ignoredir/swapped operands of `in`