'Ensure document zone with URL root results in internal redirect'

def test_url_root_internal_redirect(self):

    url = ('/en-US/%s?raw' % self.zone_root)
    response = self.client.get(url, follow=False)
    eq_(200, response.status_code)
    eq_(self.zone_root_content, response.content)
    url = ('/en-US/%s/Middle/SubPage?raw' % self.zone_root)
    response = self.client.get(url, follow=False)
    eq_(200, response.status_code)
    eq_(self.sub_doc.html, response.content)
    self.root_zone.url_root = 'NewRoot'
    self.root_zone.save()
    url = ('/en-US/%s/Middle/SubPage?raw' % 'NewRoot')
    response = self.client.get(url, follow=False)
    eq_(200, response.status_code)
    eq_(self.sub_doc.html, response.content)
