Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 def check(args):
     """Check that args raise an exception."""
     with self.assertRaises(SystemExit):
         gen_html.get_options(args)
Esempio n. 4
0
 def check(args):
     """Check that args raise an exception."""
     with self.assertRaises(SystemExit):
         gen_html.get_options(args)