test: Store the OutputStreamCapture fixture

This allows us to access stdout and stderr from tests.

Change-Id: I912ccfd04b15ed16713d23e3e5cab72889d4d233
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:
Stephen Finucane 2017-10-25 17:07:34 +01:00
parent 5023e6c370
commit bd47d4460d

View File

@ -230,7 +230,8 @@ class TestCase(testtools.TestCase):
self.useFixture(fixtures.TempHomeDir())
self.useFixture(log_fixture.get_logging_handle_error_fixture())
self.useFixture(nova_fixtures.OutputStreamCapture())
self.output = nova_fixtures.OutputStreamCapture()
self.useFixture(self.output)
self.stdlog = nova_fixtures.StandardLogging()
self.useFixture(self.stdlog)