diff options
author | catherine <catherine@dellzilla> | 2010-02-11 14:41:07 -0500 |
---|---|---|
committer | catherine <catherine@dellzilla> | 2010-02-11 14:41:07 -0500 |
commit | a46fb382e9b97c8d52fd7113f1750b53ea2791aa (patch) | |
tree | 469e2b7f9872bb0cf02927879969ead141de775c /cmd2.py | |
parent | 7b38e1fb60ae59227153e8b5c6deb2edbf6a1a16 (diff) | |
download | cmd2-hg-a46fb382e9b97c8d52fd7113f1750b53ea2791aa.tar.gz |
transcript test running again
Diffstat (limited to 'cmd2.py')
-rwxr-xr-x | cmd2.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1444,9 +1444,9 @@ class Cmd2TestCase(unittest.TestCase): while line.startswith(self.cmdapp.continuation_prompt): command.append(line[len(self.cmdapp.continuation_prompt):]) line = transcript.next() - command = ''.join(command).strip() + command = ''.join(command) self.cmdapp.onecmd(command) - result = self.outputTrap.read().strip() + result = self.outputTrap.read() if line.startswith(self.cmdapp.prompt): message = '\nFile %s, line %d\nCommand was:\n%s\nExpected: (nothing)\nGot:\n%s\n'%\ (fname, lineNum, command, result) @@ -1456,7 +1456,7 @@ class Cmd2TestCase(unittest.TestCase): while not line.startswith(self.cmdapp.prompt): expected.append(line) line = transcript.next() - expected = ''.join(expected).strip() + expected = ''.join(expected) message = '\nFile %s, line %d\nCommand was:\n%s\nExpected:\n%s\nGot:\n%s\n'%\ (fname, lineNum, command, expected, result) expected = self.expectationParser.transformString(expected) |