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:
parent
5023e6c370
commit
bd47d4460d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user