def runner_fail_no_test_found(self):
        """
        Check that Python Nose runner fails if no tests were found
        :return:
        """
        obj = SeleniumExecutor()
        obj.engine = EngineEmul()
        obj.engine.config.merge({
            ScenarioExecutor.EXEC: {
                "executor": "selenium",
                "scenario": {"script": __dir__() + "/../selenium/invalid/dummy.py"}
            }
        })
        obj.execution = obj.engine.config['execution']
        obj.prepare()
        obj.startup()
        try:
            while not obj.check():
                time.sleep(1)
            self.fail()
        except __HOLE__ as exc:
            self.assertIn("Nothing to test.", exc.args[0])
        obj.shutdown()
dataset/ETHPy150Open Blazemeter/taurus/tests/modules/test_SeleniumExecutor.py/TestSeleniumNoseRunner.runner_fail_no_test_found