diff options
author | johnthagen <johnthagen@gmail.com> | 2019-05-25 13:36:03 -0400 |
---|---|---|
committer | johnthagen <johnthagen@gmail.com> | 2019-05-25 13:36:03 -0400 |
commit | 920b95fe4909906f2ab7230e491e20464e976809 (patch) | |
tree | b6332d7a179eaf23a3234dd0ffb89cc749929f92 | |
parent | ae03f49bd5098d32b16766464661b37ed99d015b (diff) | |
download | pip-920b95fe4909906f2ab7230e491e20464e976809.tar.gz |
Add test with non-trivial RevOptions input
-rw-r--r-- | tests/functional/test_install_vcs_svn.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/functional/test_install_vcs_svn.py b/tests/functional/test_install_vcs_svn.py index 224142b6f..8db3e8f50 100644 --- a/tests/functional/test_install_vcs_svn.py +++ b/tests/functional/test_install_vcs_svn.py @@ -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( |