예제 #1
0
 def should_group_url_keywords_if_excluding_other_types(self):
     word = SearchKeyword('goblin', 'and')
     fl = SearchFilter('type', keywords=[word])
     fl.exclude_others = True
     self.assertEqual(fl.url_fragment(), 'type=+@(+[goblin])')
예제 #2
0
 def should_group_url_keywords_if_excluding_other_types(self):
     word = SearchKeyword('goblin', 'and')
     fl = SearchFilter('type', keywords=[word])
     fl.exclude_others = True
     self.assertEqual(fl.url_fragment(), 'type=+@(+[goblin])')
예제 #3
0
 def should_group_url_keywords_if_excluding_others(self):
     word = SearchKeyword('w', 'and')
     fl = SearchFilter('color', keywords=[word])
     fl.exclude_others = True
     self.assertEqual(fl.url_fragment(), 'color=+@(+[w])')
예제 #4
0
 def should_group_url_keywords_if_excluding_others(self):
     word = SearchKeyword('w', 'and')
     fl = SearchFilter('color', keywords=[word])
     fl.exclude_others = True
     self.assertEqual(fl.url_fragment(), 'color=+@(+[w])')