From 783f0163edb7abeb9d4c20d3968f59f8bde9642b Mon Sep 17 00:00:00 2001 From: Grigory Smolkin Date: Wed, 3 Jun 2020 15:28:20 +0300 Subject: [PATCH] tests: fixes --- tests/backup.py | 2 +- tests/restore.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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))