Add test with non-trivial RevOptions input

This commit is contained in:
johnthagen 2019-05-25 13:36:03 -04:00
parent ae03f49bd5
commit 920b95fe49
1 changed files with 9 additions and 0 deletions

View File

@ -44,6 +44,15 @@ class TestSubversionArgs(TestCase):
'svn+http://username:password@svn.example.com/',
'/tmp/test'])
def test_fetch_new_revision(self):
rev_options = RevOptions(Subversion, '123')
self.svn.fetch_new(self.dest, self.url, rev_options)
self.assert_call_args(
['svn', 'checkout', '-q', '--non-interactive',
'-r', '123',
'svn+http://username:password@svn.example.com/',
'/tmp/test'])
def test_switch(self):
self.svn.switch(self.dest, self.url, self.rev_options)
self.assert_call_args(