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)
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)
def test_advanced_search(self): data = {'q': 'foobar', } form = AdvancedSearchForm(data) self.assertEqual(form.is_valid(), True)
def test_advanced_search(self): data = { 'q': 'foobar', } form = AdvancedSearchForm(data) self.assertEqual(form.is_valid(), True)