'Check that specific hints are returned'

def test_get_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)
    result = self.call_event('get_hint', {'submittedanswer': 'ans=incorrect+answer+1'})
    expected = {'BestHint': 'new    hint    for    answer    1', 'StudentAnswer': 'incorrect    answer    1', 'HintCategory': 'ErrorResponse'}
    self.assertEqual(json.loads(result.content), expected)
