def test_options_samples(self):
        result = self.call_main(['--samples', '4'], self.get_default_environ())
        self.assertEqual(result['num_samples'], 4)
The --samples flag gets read as the num_samples value.
dataset/ETHPy150Open ClusterHQ/flocker/benchmark/test/test_script.py/MainTests.test_options_samples