Пример #1
0
 def test_success(self):
     self.data['feedback'] = 'yolo'
     form = FeedbackForm(self.data, request=self.request)
     eq_(form.is_valid(), True)
Пример #2
0
 def test_success(self):
     self.data['feedback'] = 'yolo'
     form = FeedbackForm(self.data, request=self.request)
     eq_(form.is_valid(), True)
Пример #3
0
 def test_error_feedback_required(self):
     form = FeedbackForm(self.data, request=self.request)
     eq_(form.is_valid(), False)
     eq_(form.errors, {'feedback': [u'This field is required.']})
Пример #4
0
 def test_error_feedback_required(self):
     form = FeedbackForm(self.data, request=self.request)
     eq_(form.is_valid(), False)
     eq_(form.errors, {'feedback': [u'This field is required.']})