'Check that reported hints are returned'

def test_dont_show_reported_hint(self):

    self.call_event('get_hint', {'submittedanswer': 'ans=incorrect+answer+1'})
    submission = {'new_hint_submission': 'new    hint    for    answer    1', 'answer': 'incorrect    answer    1'}
    self.call_event('add_new_hint', submission)
    data = {'student_answer': 'incorrect    answer    1', 'hint': 'new    hint    for    answer    1', 'student_rating': 'report'}
    self.call_event('rate_hint', data)
    result = self.call_event('get_hint', {'submittedanswer': 'ans=incorrect+answer+1'})
    expected = {'BestHint': 'Sorry,    there    are    no    hints    for    this    answer.', 'StudentAnswer': 'incorrect    answer    1', 'HintCategory': False}
    self.assertEqual(json.loads(result.content), expected)
