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 3563d00530
commit d0ef6fd4b5
1 changed files with 2 additions and 1 deletions

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)