allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [30/38] git commit: [#4019] ticket:559 Added test case for 'escape_solr_arg' function
Date Wed, 30 Apr 2014 18:16:02 GMT
[#4019] ticket:559 Added test case for 'escape_solr_arg' function


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/61368d23
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/61368d23
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/61368d23

Branch: refs/heads/master
Commit: 61368d23de772aec82f0f656f255208eccba769d
Parents: 3dec13d
Author: Ferens Dmitriy <ferensdima@gmail.com>
Authored: Tue Mar 18 22:17:14 2014 +0200
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Wed Apr 30 15:55:14 2014 +0000

----------------------------------------------------------------------
 Allura/allura/tests/unit/test_solr.py | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/61368d23/Allura/allura/tests/unit/test_solr.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/unit/test_solr.py b/Allura/allura/tests/unit/test_solr.py
index 000ed7e..5c7f93d 100644
--- a/Allura/allura/tests/unit/test_solr.py
+++ b/Allura/allura/tests/unit/test_solr.py
@@ -208,3 +208,8 @@ class TestSearch_app(unittest.TestCase):
         text = 'some: weird "text" with symbols'
         escaped_text = escape_solr_arg(text)
         assert_equal(escaped_text, r'some\: weird \"text\" with symbols')
+
+    def test_escape_solr_arg_with_backslash(self):
+        text = 'some: weird "text" with \\ backslash'
+        escaped_text = escape_solr_arg(text)
+        assert_equal(escaped_text, r'some\: weird \"text\" with \\ backslash')


Mime
View raw message