'Creating a new document with a revision comment saves the comment'

def test_new_document_comment(self):

    self.client.login(username='admin', password='testpass')
    comment = 'I    am    the    revision    comment'
    slug = 'Test-doc-comment'
    loc = settings.WIKI_DEFAULT_LANGUAGE
    data = new_document_data()
    data.update({'slug': slug, 'comment': comment})
    self.client.post(reverse('wiki.create'), data)
    doc = Document.objects.get(slug=slug, locale=loc)
    eq_(comment, doc.current_revision.comment)
