'Issues a request to update a thread and verifies the result.'

def update_thread_helper(self, mock_request):

    self._setup_mock_request(mock_request)
    with patch.object(Thread, 'save'):
        response = self.client.post(reverse('update_thread', kwargs={'thread_id': 'dummy', 'course_id': unicode(self.course_id)}), data={'body': 'foo', 'title': 'foo', 'commentable_id': 'some_topic'})
    self.assertEqual(response.status_code, 200)
    data = json.loads(response.content)
    self.assertEqual(data['body'], 'foo')
    self.assertEqual(data['title'], 'foo')
    self.assertEqual(data['commentable_id'], 'some_topic')
