

def test_admin_URLs_no_clash(self):
    '\n        Test that some admin URLs work correctly.\n        '
    url = reverse(('admin_custom_urls:%s_action_change' % Action._meta.app_label), args=(quote('add'),))
    response = self.client.get(url)
    self.assertContains(response, 'Change action')
    url = reverse(('admin_custom_urls:%s_action_change' % Action._meta.app_label), args=(quote('path/to/html/document.html'),))
    response = self.client.get(url)
    self.assertContains(response, 'Change action')
    self.assertContains(response, 'value="path/to/html/document.html"')

dataset/ETHPy150Open django/django/tests/admin_custom_urls/tests.py AdminCustomUrlsTest.test_admin_URLs_no_clash/original