def check(args, expected_output_dir, expected_input, expected_buckets): """Check that args is parsed correctly.""" options = gen_html.get_options(args) self.assertEquals(expected_output_dir, options.output_dir) self.assertEquals(expected_input, options.input) self.assertEquals(expected_buckets, options.buckets)
def check(args): """Check that args raise an exception.""" with self.assertRaises(SystemExit): gen_html.get_options(args)