Пример #1
0
 def test_basic_search_invalid_too_short(self):
     data = {'q': 'a' * (settings.ST_SEARCH_QUERY_MIN_LEN - 1), }
     form = BasicSearchForm(data)
     self.assertEqual(form.is_valid(), False)
Пример #2
0
 def test_basic_search_invalid_too_short(self):
     data = {
         'q': 'a' * (settings.ST_SEARCH_QUERY_MIN_LEN - 1),
     }
     form = BasicSearchForm(data)
     self.assertEqual(form.is_valid(), False)
Пример #3
0
 def test_basic_search(self):
     data = {'q': 'foobar', }
     form = BasicSearchForm(data)
     self.assertEqual(form.is_valid(), True)
Пример #4
0
 def test_basic_search(self):
     data = {
         'q': 'foobar',
     }
     form = BasicSearchForm(data)
     self.assertEqual(form.is_valid(), True)