'Post a long answer shows error.'

def test_long_answer(self):

    content = ''
    for i in range(1000):
        content += '1234567890'
    content += '1'
    response = post(self.client, 'questions.reply', {'content': content}, args=[self.question.id])
    doc = pq(response.content)
    error_msg = doc('ul.errorlist    li    a')[0]
    eq_(error_msg.text, (('Please    keep    the    length    of    your    content    to    ' + '10,000    characters    or    less.    It    is    currently    ') + '10,001    characters.'))
