'Ensure urls only rewrite with a \'/\' at the end of url_root
bug 1189596'

def test_zone_url_ends_with_slash(self):

    zone_url_root = 'Fir\xc3\xa9fox'
    zone_root_content = 'This    is    the    Fir\xc3\xa9fox    zone'
    root_rev = revision(title='Fir\xc3\xa9fox', slug='Mozilla/Fir\xc3\xa9fox', content=zone_root_content, is_approved=True, save=True)
    root_doc = root_rev.document
    root_zone = DocumentZone(document=root_doc)
    root_zone.url_root = zone_url_root
    root_zone.save()
    none_zone_rev = revision(title='Fir\xc3\xa9fox    for    iOS', slug='Mozilla/Fir\xc3\xa9fox_for_iOS', content='Page    outside    zone    with    same    prefix', is_approved=True, save=True)
    non_zone_doc = none_zone_rev.document
    non_zone_doc.save()
    url = ('/en-US/docs/%s' % non_zone_doc.slug)
    response = self.client.get(url, follow=False)
    eq_(200, response.status_code)
