Beispiel #1
0
 def test_makecmdoptions_quote_escape(self):
     auth = SvnAuth('fo"o', '"ba\'r"')
     assert auth.makecmdoptions() == '--username="******"o" --password="******"ba\'r\\""'
Beispiel #2
0
 def test_makecmdoptions_no_interactive_no_cache_auth(self):
     auth = SvnAuth('foo', 'bar', cache_auth=False,
                            interactive=False)
     assert auth.makecmdoptions() == ('--username="******" --password="******" '
                                      '--no-auth-cache --non-interactive')
Beispiel #3
0
 def test_makecmdoptions_uname_pw_makestr(self):
     auth = SvnAuth('foo', 'bar')
     assert auth.makecmdoptions() == '--username="******" --password="******"'