def test_setup_conf_slowest(self): slowest = random.randint(1, 10000) conf = analyze_journal.setup_conf( self.output, ['--slowest', str(slowest)]) self.assertEqual(slowest, conf.slowest)
def test_setup_conf_file(self): file_name = _random_string() conf = analyze_journal.setup_conf(self.output, ['--file', file_name]) self.assertEqual(file_name, conf.file)
def test_setup_conf_no_args(self): conf = analyze_journal.setup_conf(self.output, []) self.assertIsNotNone(conf) self._assert_nothing_printed()