Ejemplo n.º 1
0
 def test_smoke_all_flags(self):
   args = common.get_arguments(('--gauge={}',
                                '--float={}',
                                '--string={}',
                                '--bool={}',
                                '--boolean={}',
                                '--counter={}',
                                '--cumulative={}'))
   self.assertIsInstance(args, argparse.Namespace)
Ejemplo n.º 2
0
 def test_smoke_all_flags(self):
     args = common.get_arguments(
         ('--gauge={}', '--float={}', '--string={}', '--bool={}',
          '--boolean={}', '--counter={}', '--cumulative={}'))
     self.assertIsInstance(args, argparse.Namespace)
Ejemplo n.º 3
0
 def test_smoke_one_flag_repeated(self):
     args = common.get_arguments(('--gauge={}', '--gauge={}'))
     self.assertIsInstance(args, argparse.Namespace)
     self.assertEquals(args.gauge, ['{}', '{}'])
Ejemplo n.º 4
0
 def test_smoke_one_flag_repeated(self):
   args = common.get_arguments(('--gauge={}', '--gauge={}'))
   self.assertIsInstance(args, argparse.Namespace)
   self.assertEquals(args.gauge, ['{}', '{}'])