Beispiel #1
0
 def test_app_add_options_with_raw(self):
   # raw option
   app = Application(force_args=['--option1', 'option1value', 'extraargs'])
   app.add_option('--option1', dest='option1')
   app.init()
   assert app.get_options().option1 == 'option1value'
   assert app.argv() == ['extraargs']
Beispiel #2
0
 def test_app_add_options_with_raw(self):
   # raw option
   app = Application(force_args=['--option1', 'option1value', 'extraargs'])
   app.add_option('--option1', dest='option1')
   app.init()
   assert app.get_options().option1 == 'option1value'
   assert app.argv() == ['extraargs']