diff --git a/tests/backup.py b/tests/backup.py index be51dfef..0a47c133 100644 --- a/tests/backup.py +++ b/tests/backup.py @@ -1927,7 +1927,7 @@ class BackupTest(ProbackupTest, unittest.TestCase): repr(self.output), self.cmd)) except ProbackupException as e: self.assertIn( - 'ERROR: Cannot open source file', + 'ERROR: Cannot open file', e.message, '\n Unexpected Error Message: {0}\n CMD: {1}'.format( repr(e.message), self.cmd)) diff --git a/tests/restore.py b/tests/restore.py index 6ab3da33..0ffa59f7 100644 --- a/tests/restore.py +++ b/tests/restore.py @@ -845,7 +845,7 @@ class RestoreTest(ProbackupTest, unittest.TestCase): repr(self.output), self.cmd)) except ProbackupException as e: self.assertIn( - 'ERROR: restore destination is not empty:', + 'ERROR: Restore destination is not empty:', e.message, '\n Unexpected Error Message: {0}\n CMD: {1}'.format( repr(e.message), self.cmd))