mirror of
https://github.com/TrentSPalmer/trentpalmerdotorg.git
synced 2024-11-24 02:11:30 -08:00
test length of urlpatterns list from accounts.url
This commit is contained in:
parent
c906e6599c
commit
3562a8058e
@ -3,6 +3,13 @@ from django.urls import reverse, resolve
|
|||||||
from accounts.views import log_out, password_change, register, edit_profile
|
from accounts.views import log_out, password_change, register, edit_profile
|
||||||
from accounts.login import log_in, two_factor_input
|
from accounts.login import log_in, two_factor_input
|
||||||
from accounts.enable_totp import enable_totp, disable_totp
|
from accounts.enable_totp import enable_totp, disable_totp
|
||||||
|
from accounts.urls import urlpatterns
|
||||||
|
|
||||||
|
|
||||||
|
class TestNumUrls(SimpleTestCase):
|
||||||
|
|
||||||
|
def test_num_urls(self):
|
||||||
|
self.assertEquals(len(urlpatterns), 12)
|
||||||
|
|
||||||
|
|
||||||
class TestViewsUrls(SimpleTestCase):
|
class TestViewsUrls(SimpleTestCase):
|
||||||
|
Loading…
Reference in New Issue
Block a user