Add a manual stage for cli-only interaction

This commit is contained in:
Anthony Sottile 2018-03-07 12:41:25 -08:00
parent 4088f55ee6
commit bf5792eb10
5 changed files with 30 additions and 45 deletions

View file

@ -180,7 +180,8 @@ class Fixture(object):
def get_bytes(self):
"""Get the output as-if no encoding occurred"""
data = self._stream.data.getvalue()
self._stream.data.truncate(0)
self._stream.data.seek(0)
self._stream.data.truncate()
return data
def get(self):