Use bare strings in test assertion

This commit is contained in:
johnthagen 2019-05-25 13:22:53 -04:00
parent a4aff3b7ff
commit 8de73a130e
1 changed files with 7 additions and 5 deletions

View File

@ -54,16 +54,18 @@ class TestSubversionArgs(TestCase):
def test_fetch_new_should_include_remote_call_options(self):
self.svn.fetch_new(self.dest, self.url, self.rev_options)
self.assert_call_args(
[self.svn.name, 'checkout', '-q', '--non-interactive', self.url,
self.dest])
['svn', 'checkout', '-q', '--non-interactive',
'svn+http://username:password@svn.example.com/',
'/tmp/test'])
def test_switch_should_include_remote_call_options(self):
self.svn.switch(self.dest, self.url, self.rev_options)
self.assert_call_args(
[self.svn.name, 'switch', '--non-interactive', self.url,
self.dest])
['svn', 'switch', '--non-interactive',
'svn+http://username:password@svn.example.com/',
'/tmp/test'])
def test_update_should_include_remote_call_options(self):
self.svn.update(self.dest, self.url, self.rev_options)
self.assert_call_args(
[self.svn.name, 'update', '--non-interactive', self.dest])
['svn', 'update', '--non-interactive', '/tmp/test'])