Fix test to respect the new .truncate() behavior

This commit is contained in:
Daniel Neuhäuser 2010-06-19 16:38:52 +02:00
parent 38d11bbe14
commit 2ce553a71a

View File

@ -45,9 +45,11 @@ def test_output():
app = TestApp(status=status, warning=warnings)
try:
status.truncate(0) # __init__ writes to status
status.seek(0)
app.info("Nothing here...")
assert status.getvalue() == "Nothing here...\n"
status.truncate(0)
status.seek(0)
app.info("Nothing here...", True)
assert status.getvalue() == "Nothing here..."