'Test proper redirect creation on title change.'

def test_change_title(self):

    self.d.title = 'New    Title'
    self.d.save()
    redirect = Document.objects.get(title=self.old_title)
    eq_((REDIRECT_CONTENT % self.d.title), redirect.current_revision.content)
    eq_((REDIRECT_SLUG % dict(old=self.d.slug, number=1)), redirect.slug)
