'Test that some admin URLs work correctly.'

def testAdminUrlsNoClash(self):

    response = self.client.get(u'/custom_urls/admin/admin_custom_urls/action/add/')
    self.assertEqual(response.status_code, 200)
    self.assertContains(response, u'Change    action')
    url = reverse((u'admin:%s_action_change' % Action._meta.app_label), args=(quote(u'add'),))
    response = self.client.get(url)
    self.assertEqual(response.status_code, 200)
    self.assertContains(response, u'Change    action')
    url = reverse((u'admin:%s_action_change' % Action._meta.app_label), args=(quote(u'path/to/html/document.html'),))
    response = self.client.get(url)
    self.assertEqual(response.status_code, 200)
    self.assertContains(response, u'Change    action')
    self.assertContains(response, u'value="path/to/html/document.html"')
