incuna / incuna-test-utils

TestCases and other helpers for testing Django apps.
BSD 2-Clause "Simplified" License
7 stars 7 forks source link

assert_url_matches_view passes when as_view is missing #55

Closed LilyFoote closed 9 years ago

LilyFoote commented 9 years ago

When using a class-based view, a urls.py with a missing .as_view method doesn't fail an assert_url_matches_view test.

Incorrect:

url(regex, ViewClass, url_name)

Correct:

url(regex, ViewClass.as_view(), url_name)

We should make sure assert_url_matches_view fails with the first example and passes with the second.

LilyFoote commented 9 years ago

@incuna/backend Review?