def test_ignored_directory(self):
        """
        Test --ignore parameter
        """
        pipreqs.init(
            {'<path>': self.project_with_ignore_directory, '--savepath': None,
                      '--use-local': None, '--force': True,
                      '--proxy':None,
                      '--pypi-server':None,
                      '--ignore':'.ignored_dir,.ignore_second'
            }
        )
        with open(os.path.join(self.project_with_ignore_directory, "requirements.txt"), "r") as f:
            data = f.read().lower()
            for item in ['click', 'getpass']:
                self.assertFalse(data in item.lower())
dataset/ETHPy150Open bndr/pipreqs/tests/test_pipreqs.py/TestPipreqs.test_ignored_directory/swapped operands of `in`