コード例 #1
0
ファイル: outofspace.py プロジェクト: johnmdilley/xenrt
    def _assertStdOutCaptured(self):
        sayHelloOnOut = echoplugin.EchoRequest(
            data='HELLO', stdout=True, exitCode=1)
        result = self._callEchoPlugin(sayHelloOnOut)

        self._assertNonZeroStatus(result)

        assertions.assertIn('stdout: HELLO', result)
コード例 #2
0
ファイル: outofspace.py プロジェクト: johnmdilley/xenrt
    def _assertStdErrCaptured(self):
        sayHelloOnError = echoplugin.EchoRequest(
            data='HELLO', stderr=True, exitCode=1)
        result = self._callEchoPlugin(sayHelloOnError)

        self._assertNonZeroStatus(result)

        assertions.assertIn('stderr: HELLO', result)
コード例 #3
0
    def _assertStdErrCaptured(self):
        sayHelloOnError = echoplugin.EchoRequest(data='HELLO',
                                                 stderr=True,
                                                 exitCode=1)
        result = self._callEchoPlugin(sayHelloOnError)

        self._assertNonZeroStatus(result)

        assertions.assertIn('stderr: HELLO', result)