Ejemplo n.º 1
0
 def test_chg_form_status_field_help_text(self):
     form = QuestionChangeForm()
     self.assertEqual(
         form.fields['status'].help_text,
         'Nur Fragen im Status \'Aktiv\' werden angezeigt. Fragen markiert als Gruppen Titel werden als solche behandelt.'
     )
Ejemplo n.º 2
0
 def test_chg_form_text_field_label(self):
     form = QuestionChangeForm()
     self.assertEqual(form.fields['text'].label, 'Frage')
Ejemplo n.º 3
0
 def test_chg_form_status_field_label(self):
     form = QuestionChangeForm()
     self.assertEqual(form.fields['status'].label, 'Status')
Ejemplo n.º 4
0
 def test_chg_form_topic_field_label(self):
     form = QuestionChangeForm()
     self.assertEqual(form.fields['topic'].label, 'Thema')
Ejemplo n.º 5
0
 def test_chg_form_answer_field_help_text(self):
     form = QuestionChangeForm()
     self.assertEqual(form.fields['answer'].help_text,
                      'Die mögliche Antwort.')
Ejemplo n.º 6
0
 def test_chg_form_answer_field_label(self):
     form = QuestionChangeForm()
     self.assertEqual(form.fields['answer'].label, 'Antwort')
Ejemplo n.º 7
0
 def test_chg_form_text_field_help_text(self):
     form = QuestionChangeForm()
     self.assertEqual(form.fields['text'].help_text, 'Die aktuelle Frage.')