Skip to content

Commit

Permalink
Add a test for encoding of slashes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Mar 6, 2014
1 parent 3ef025c commit 079973a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions taskw/test/test_datas.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,16 @@ def test_filtering_question_mark(self):
eq_(len(tasks), 1)
eq_(tasks[0]['id'], 3)

def test_filtering_slash(self):
task1 = self.tw.task_add("foobar1")
task2 = self.tw.task_add("foobar2")
task2 = self.tw.task_add("foo/bar")
tasks = self.tw.filter_tasks({
'description.contains': 'foo/bar',
})
eq_(len(tasks), 1)
eq_(tasks[0]['id'], 3)

def test_filtering_logic_disjunction(self):
task1 = self.tw.task_add("foobar1")
task2 = self.tw.task_add("foobar2")
Expand Down

0 comments on commit 079973a

Please sign in to comment.