Esempio n. 1
0
 def test_form_renders_seq_text_input_widget(self):
     """
     Tests correct rendering of form input text area
     :return:
     """
     form = QueryForm()
     field = form['align_input']
     self.assertIn('Paste in your alignment:<br>(FASTA, clustalw, stockholm or phylip)', field.label_tag())
     self.assertIn('placeholder="Alignment (FASTA, clustalw, stockholm or phylip)"', form.as_p())
     self.assertIn('class="form-control"', form.as_p())
Esempio n. 2
0
 def test_form_renders_sequence_type_radio_buttons(self):
     """
     Tests correct rendering of form radio buttons
     :return:
     """
     form = QueryForm()
     field = form['seq_type']
     self.assertIn('Input sequence type:', field.label_tag())
     self.assertIn('<input id="id_seq_type_0" name="seq_type" type="radio" value="Protein"', form.as_p())
     self.assertIn('<input checked="checked" id="id_seq_type_1" name="seq_type" type="radio" value="DNA"', form.as_p())