'Create a comment with unicode in it.'

@patch('lms.lib.comment_client.utils.requests.request', autospec=True)
def _test_unicode_data(self, text, mock_request):

    self._set_mock_request_data(mock_request, {'closed': False, 'depth': 1, 'thread_id': 'test_thread', 'commentable_id': 'non_team_dummy_id'})
    request = RequestFactory().post('dummy_url', {'body': text})
    request.user = self.student
    request.view_name = 'create_sub_comment'
    Thread.commentable_id = 'test_commentable'
    try:
        response = views.create_sub_comment(request, course_id=unicode(self.course.id), comment_id='dummy_comment_id')
        self.assertEqual(response.status_code, 200)
        self.assertTrue(mock_request.called)
        self.assertEqual(mock_request.call_args[1]['data']['body'], text)
    finally:
        del Thread.commentable_id
