Beispiel #1
0
 def test_advanced_search_invalid_too_short(self):
     data = {'q': 'a' * (settings.ST_SEARCH_QUERY_MIN_LEN - 1), }
     form = AdvancedSearchForm(data)
     self.assertEqual(form.is_valid(), False)
Beispiel #2
0
 def test_advanced_search(self):
     data = {'q': 'foobar', }
     form = AdvancedSearchForm(data)
     self.assertEqual(form.is_valid(), True)