Unit Tests
- Escapes / characes in search patterns, so that 'foo/' --> 'foo\/', which then allows '/foo\//'. In Python, this needs one more: '/foo\\//'.
This commit is contained in:
@@ -21,8 +21,7 @@ class Test1418(TestCase):
|
|||||||
self.assertIn(description, out)
|
self.assertIn(description, out)
|
||||||
|
|
||||||
def search_task_pattern(self, description):
|
def search_task_pattern(self, description):
|
||||||
# TODO escape any "/" in description - check comments on bug 1418
|
command = ("/" + description.replace("/", "\\/") + "/",)
|
||||||
command = ("/" + description + "/",)
|
|
||||||
code, out, err = self.t(command)
|
code, out, err = self.t(command)
|
||||||
self.assertIn(description, out)
|
self.assertIn(description, out)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user