Exemplo n.º 1
0
 def check(args):
     """Check that missing args raise an exception."""
     with self.assertRaises(SystemExit):
         gen_json.get_options(args)
Exemplo n.º 2
0
 def check(args, expected_buckets, expected_match):
     """Check that all args are parsed as expected."""
     options = gen_json.get_options(args)
     self.assertEquals(expected_buckets, options.buckets)
     self.assertEquals(expected_match, options.match)
Exemplo n.º 3
0
 def check(args, expected_buckets, expected_match):
     """Check that all args are parsed as expected."""
     options = gen_json.get_options(args)
     self.assertEquals(expected_buckets, options.buckets)
     self.assertEquals(expected_match, options.match)
Exemplo n.º 4
0
 def check(args):
     """Check that missing args raise an exception."""
     with self.assertRaises(SystemExit):
         gen_json.get_options(args)
Exemplo n.º 5
0
 def check(args, expected_jobs_dir, expected_match):
     """Check that all args are parsed as expected."""
     options = gen_json.get_options(args)
     self.assertEquals([expected_jobs_dir], options.jobs_dirs)
     self.assertEquals(expected_match, options.match)