WTE: update tests to show two lines of responses instead of one (verbose)

This commit is contained in:
James Lu 2015-11-21 22:27:52 -08:00
parent a0611ba422
commit d9fe1a0137

View File

@ -40,8 +40,9 @@ class WTETestCase(PluginTestCase):
"--no-network") "--no-network")
def testWTE(self): def testWTE(self):
inp = "The quick brown fox jumps over the lazy dog." inp = "The quick brown fox jumps over the lazy dog."
m = self.getMsg("wte %s" % inp) for _ in range(2):
print('\nWTE Input: %s\nWTE Response: %s' % (inp, m.args[1])) m = self.getMsg("wte %s" % inp)
assert m, 'No response found.' print('\nWTE Input: %s\nWTE Response: %s' % (inp, m.args[1]))
assert m, 'No response found.'
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: