'While try to create a child of a redirected zone document with its unzoned document slug,
the parent of the child should be redirect\'s parent'

def test_creating_child_of_redirect_zoned_doc_with_unzoned_doc_slug(self):

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