|
|
@@ -107,13 +107,13 @@ class TestExtendedURLValidator(TestCase):
|
|
107
|
107
|
v('/invalid/?q=test') # Query strings shouldn't affect validation
|
|
108
|
108
|
|
|
109
|
109
|
try:
|
|
110
|
|
- v('products/')
|
|
|
110
|
+ v('catalogue/')
|
|
111
|
111
|
except ValidationError:
|
|
112
|
112
|
self.fail('ExtendedURLValidator raised ValidationError'
|
|
113
|
113
|
'unexpectedly!')
|
|
114
|
114
|
|
|
115
|
115
|
with self.assertRaises(ValidationError):
|
|
116
|
|
- v('/products') # Missing the / is bad
|
|
|
116
|
+ v('/catalogue') # Missing the / is bad
|
|
117
|
117
|
|
|
118
|
118
|
FlatPage(title='test page', url='/test/page/').save()
|
|
119
|
119
|
try:
|