'Verify that if some potentially harmful input data is sent, that is is properly HTML encoded'

def test_encoding_answers(self):

    data = dict.copy(self.student_answers)
    data['field1'] = '<script    type="javascript">alert("Deleting    filesystem...")</script>'
    resp = self.client.post(self.postback_url, data)
    self.assertEquals(resp.status_code, 200)
    answers = self.survey.get_answers(self.student)
    self.assertEqual('&lt;script    type=&quot;javascript&quot;&gt;alert(&quot;Deleting    filesystem...&quot;)&lt;/script&gt;', answers[self.student.id]['field1'])
