diff options
Diffstat (limited to 'test/option/h.py')
-rw-r--r-- | test/option/h.py | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/test/option/h.py b/test/option/h.py index bf6a6ae..f921333 100644 --- a/test/option/h.py +++ b/test/option/h.py @@ -24,36 +24,34 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" -import string - import TestSCons test = TestSCons.TestSCons() test.run(arguments = '-h') -test.fail_test(string.find(test.stdout(), '-h, --help') == -1) +test.must_contain_all_lines(test.stdout(), ['-h, --help']) test.run(arguments = '-u -h') -test.fail_test(string.find(test.stdout(), '-h, --help') == -1) +test.must_contain_all_lines(test.stdout(), ['-h, --help']) test.run(arguments = '-U -h') -test.fail_test(string.find(test.stdout(), '-h, --help') == -1) +test.must_contain_all_lines(test.stdout(), ['-h, --help']) test.run(arguments = '-D -h') -test.fail_test(string.find(test.stdout(), '-h, --help') == -1) +test.must_contain_all_lines(test.stdout(), ['-h, --help']) test.write('SConstruct', "") test.run(arguments = '-h') -test.fail_test(string.find(test.stdout(), '-h, --help') == -1) +test.must_contain_all_lines(test.stdout(), ['-h, --help']) test.run(arguments = '-u -h') -test.fail_test(string.find(test.stdout(), '-h, --help') == -1) +test.must_contain_all_lines(test.stdout(), ['-h, --help']) test.run(arguments = '-U -h') -test.fail_test(string.find(test.stdout(), '-h, --help') == -1) +test.must_contain_all_lines(test.stdout(), ['-h, --help']) test.run(arguments = '-D -h') -test.fail_test(string.find(test.stdout(), '-h, --help') == -1) +test.must_contain_all_lines(test.stdout(), ['-h, --help']) test.pass_test() |