def test_selenium_startup_shutdown_python_folder(self):
        obj = SeleniumExecutor()
        obj.engine = EngineEmul()
        obj.engine.config.merge({
            'execution': {
                'scenario': {'script': __dir__() + '/../selenium/python/'},
                'executor': 'selenium'
            },
            'reporting': [{'module': 'junit-xml'}]
        })
        obj.engine.config.merge({"provisioning": "local"})
        obj.execution = obj.engine.config['execution']
        obj.settings.merge(obj.engine.config.get("modules").get("selenium"))
        obj.prepare()
        obj.startup()
        while not obj.check():
            time.sleep(1)
        obj.shutdown()
        prepared_files = os.listdir(obj.runner.working_dir)
        python_files = [fname for fname in prepared_files if fname.endswith(".py")]
        self.assertEqual(2, len(python_files))
        self.assertTrue(os.path.exists(obj.runner.settings.get("report-file")))
Check if the invoice is a credit invoice
dataset/ETHPy150Open Blazemeter/taurus/tests/modules/test_SeleniumExecutor.py/TestSeleniumNoseRunner.test_selenium_startup_shutdown_python_folder--crossover with--dataset/ETHPy150Open bread-and-pepper/django-brookie/brookie/models.py/Invoice.is_credit