Commit e5dcfcb5 authored by Mathieu Giraud's avatar Mathieu Giraud

src/should.py: update tests

parent 5d636694
Pipeline #619 passed with stages
in 12 seconds
......@@ -645,12 +645,7 @@ class TestCase(TestCaseAbstract):
class TestSuite():
'''
>>> s = TestSuite()
>>> s.load(['echo "hello"', '$My test', ':hello'])
>>> print(s)
echo "hello"
My test
>>> s.test()
>>> s.test(['echo "hello"', '$My test', ':hello'], colorize = False)
True
>>> s.tests[0].status
True
......@@ -658,8 +653,7 @@ class TestSuite():
>>> s2 = TestSuite('r')
>>> s2.variables.append(("$LAUNCHER", ""))
>>> s2.variables.append(("$EXTRA", ""))
>>> s2.load(['echo "hello"', '$ A nice test', ':e.*o'])
>>> s2.test(verbose = 1, colorize = False) # doctest: +NORMALIZE_WHITESPACE
>>> s2.test(['echo "hello"', '$ A nice test', ':e.*o'], verbose = 1, colorize = False) # doctest: +NORMALIZE_WHITESPACE
echo "hello"
stdout --> 1 lines
stderr --> 0 lines
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment