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])')
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])')