[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] New test for issue 3609

From: Noorul Islam K M <noorul_at_collab.net>
Date: Mon, 08 Nov 2010 10:43:54 +0530

[[[

New test for issue 3609

* subversion/tests/cmdline/info_tests.py
  (info_url_special_characters, test_list): New test

Patch by: Noorul Islam K M <noorul{_AT_}collab.net>

]]]

Thanks and Regards
Noorul

Index: ../subversion/tests/cmdline/info_tests.py
===================================================================
--- ../subversion/tests/cmdline/info_tests.py (revision 1032461)
+++ ../subversion/tests/cmdline/info_tests.py (working copy)
@@ -317,7 +317,23 @@
   exit_code, output, errput = svntest.main.run_svn(None, 'info', '-R', sbox.wc_dir)
   check_wcroot_paths(output, os.path.abspath(sbox.wc_dir))
 
+def info_url_special_characters(sbox):
+ """special characters in svn info URL"""
+ sbox.build(create_wc = False)
+ wc_dir = sbox.wc_dir
 
+ special_urls = [sbox.repo_url + '/A' + '/%2E',
+ sbox.repo_url + '%2F' + 'A']
+
+ expected = {'Path' : 'A',
+ 'Repository Root' : '.*',
+ 'Revision' : '1',
+ 'Node Kind' : 'dir',
+ }
+
+ for url in special_urls:
+ svntest.actions.run_and_verify_info([expected], url)
+
 ########################################################################
 # Run the tests
 
@@ -327,6 +343,7 @@
               info_on_added_file,
               info_on_mkdir,
               info_wcroot_abspaths,
+ info_url_special_characters,
              ]
 
 if __name__ == '__main__':
Received on 2010-11-08 06:15:02 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.