Пример #1
0
 def test_smoke_all_flags(self):
   args = common.get_arguments(('--gauge={}',
                                '--float={}',
                                '--string={}',
                                '--bool={}',
                                '--boolean={}',
                                '--counter={}',
                                '--cumulative={}'))
   self.assertIsInstance(args, argparse.Namespace)
Пример #2
0
 def test_smoke_all_flags(self):
     args = common.get_arguments(
         ('--gauge={}', '--float={}', '--string={}', '--bool={}',
          '--boolean={}', '--counter={}', '--cumulative={}'))
     self.assertIsInstance(args, argparse.Namespace)
Пример #3
0
 def test_smoke_one_flag_repeated(self):
     args = common.get_arguments(('--gauge={}', '--gauge={}'))
     self.assertIsInstance(args, argparse.Namespace)
     self.assertEquals(args.gauge, ['{}', '{}'])
Пример #4
0
 def test_smoke_one_flag_repeated(self):
   args = common.get_arguments(('--gauge={}', '--gauge={}'))
   self.assertIsInstance(args, argparse.Namespace)
   self.assertEquals(args.gauge, ['{}', '{}'])