def test_options_samples_invalid(self):
        with capture_stderr():
            exception = self.assertRaises(
                SystemExit, self.call_main, ['--samples', 'X'],
                self.get_default_environ()
            )
        self.assertIn('Invalid sample count', exception.args[0])
The script fails for an invalid --samples flag.
dataset/ETHPy150Open ClusterHQ/flocker/benchmark/test/test_script.py/MainTests.test_options_samples_invalid