| 429 | return PEX(self.exe) |
| 430 | |
| 431 | def assert_success( |
| 432 | self, |
| 433 | expected_output_re=None, # type: Optional[str] |
| 434 | expected_error_re=None, # type: Optional[str] |
| 435 | re_flags=0, # type: int |
| 436 | ): |
| 437 | # type: (...) -> None |
| 438 | assert self.return_code == 0, to_unicode( |
| 439 | "integration test failed: return_code={return_code}, output={output}, error={error}" |
| 440 | ).format(return_code=self.return_code, output=self.output, error=self.error) |
| 441 | self.assert_output(expected_output_re, expected_error_re, re_flags) |
| 442 | |
| 443 | def assert_failure( |
| 444 | self, |