Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gyllstromk committed Jul 11, 2012
1 parent 3f10e52 commit bfc00eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test.py
Expand Up @@ -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')
Expand All @@ -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):
Expand Down

0 comments on commit bfc00eb

Please sign in to comment.