Lisibilité: t_urls -> reversed_urls
This commit is contained in:
parent
b1c69eddb5
commit
bb72a16b64
2 changed files with 7 additions and 7 deletions
|
@ -350,7 +350,7 @@ class ViewTestCaseMixin(TestCaseMixin):
|
|||
]
|
||||
|
||||
@property
|
||||
def t_urls(self):
|
||||
def reversed_urls(self):
|
||||
return [
|
||||
reverse(
|
||||
url_conf["name"],
|
||||
|
@ -363,16 +363,16 @@ class ViewTestCaseMixin(TestCaseMixin):
|
|||
|
||||
@property
|
||||
def url(self):
|
||||
return self.t_urls[0]
|
||||
return self.reversed_urls[0]
|
||||
|
||||
def test_urls(self):
|
||||
for url, conf in zip(self.t_urls, self.urls_conf):
|
||||
for url, conf in zip(self.reversed_urls, self.urls_conf):
|
||||
self.assertEqual(url, conf["expected"])
|
||||
|
||||
def test_forbidden(self):
|
||||
for method in self.http_methods:
|
||||
for user in self.auth_forbidden:
|
||||
for url in self.t_urls:
|
||||
for url in self.reversed_urls:
|
||||
self.check_forbidden(method, url, user)
|
||||
|
||||
def check_forbidden(self, method, url, user=None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue