'While try to create a child of a redirect,
the parent of the child should be redirect\'s parent'

def test_creating_child_of_redirect(self):

    self.client.login(username='admin', password='testpass')
    rev = revision(is_approved=True, save=True)
    doc = rev.document
    doc_first_slug = doc.slug
    doc._move_tree(new_slug='moved_doc')
    child_full_slug = ((doc_first_slug + '/') + 'children_document')
    url = reverse('wiki.document', args=[child_full_slug])
    response = self.client.get(url, follow=True)
    parameters = parse_qs(response.request['QUERY_STRING'])
    assert (parameters['parent'][0] == str(doc.id))
