Skip to content
Browse files

test fix

  • Loading branch information...
1 parent 3f10e52 commit bfc00ebdf5922954d46fb7f06cc7228f14b08f65 @gyllstromk committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 test.py
View
3 test.py
@@ -247,6 +247,7 @@ def test_help(self):
p.int('a').described_as('a fun variable')
p.float('b').described_as('yet another a fun variable')
p.float('c').described_as('')
+ p.float('d').required()
p['a'].requires('b')
p['b'].conflicts('a', 'c')
p['b'].requires('b')
@@ -255,7 +256,7 @@ def test_help(self):
self.assertRaises(FakeSystemExit, p._process_command_line, ['--help'])
- self.assertEqual(p.out.getvalue(), 'Usage: %s [--a <int>] [--c <float>] [--b <float>] [--help/-h]\nOptions: (! denotes required argument)\n --a <int> a fun variable Requires --b\n --c <float> \n --b <float> yet another a fun variable Conflicts with --a, --c Requires --b\n --help/-h Print help message. \n' % sys.argv[0])
+ self.assertEqual(p.out.getvalue(), 'Usage: %s [--a <int>] [--c <float>] [--b <float>] [--help/-h] [--d <float>]\nOptions: (! denotes required argument)\n --a <int> a fun variable Requires --b\n --c <float> \n --b <float> yet another a fun variable Conflicts with --a, --c Requires --b\n --help/-h Print help message. \n !--d <float> \n' % sys.argv[0])
def test_error_printing(self):
def create(strio):

0 comments on commit bfc00eb

Please sign in to comment.
Something went wrong with that request. Please try again.