Fixed #8725 -- Handle empty URL patterns in reverse().

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8763 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2008-08-31 17:20:40 +00:00
parent 30c7ce90c5
commit e1ea7014ad
4 changed files with 20 additions and 1 deletions

View file

@ -61,6 +61,9 @@ test_data = (
('inner-extra', NoReverseMatch, ['fred', 'inner'], {}),
('disjunction', NoReverseMatch, ['foo'], {}),
('inner-disjunction', NoReverseMatch, ['10', '11'], {}),
('extra-places', '/e-places/10/', ['10'], {}),
('extra-people', '/e-people/fred/', ['fred'], {}),
('extra-people', '/e-people/fred/', [], {'name': 'fred'}),
)
class URLPatternReverse(TestCase):