Exemple #1
0
    def test_no_message_rerun(self):
        try:
            raise EnvVersionError()
        except EnvVersionError as e:
            driver.handle_reload_exception(e, True)

        assertRegex(
            self, self.stream.getvalue(), 'Unable to reload environment\n' +
            '  Please re-run bfg9000 manually\n')
Exemple #2
0
    def test_message_rerun(self):
        try:
            raise EnvVersionError('message')
        except EnvVersionError as e:
            driver.handle_reload_exception(e, True)

        self.assertRegex(
            self.stream.getvalue(), 'unable to reload environment: message\n' +
            '  please re-run bfg9000 manually\n', re.MULTILINE)