Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cbfb496

Browse files
committed
tests: minor fix in "external" module
1 parent d66bca9 commit cbfb496

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/external.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,9 @@ def test_external_simple(self):
5252
"\n Output: {0} \n CMD: {1}".format(
5353
repr(self.output), self.cmd))
5454
except ProbackupException as e:
55-
self.assertIn(
56-
'ERROR: --external-dirs option "{0}": '
57-
'directory or symbolic link expected\n'.format(file_path),
58-
e.message,
55+
self.assertTrue(
56+
'ERROR: --external-dirs option' in e.message and
57+
'directory or symbolic link expected' in e.message,
5958
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(
6059
repr(e.message), self.cmd))
6160

0 commit comments

Comments
 (0)