소스 검색

Fix test for URL validator

Change to products URL was not picked up here.
master
David Winterbottom 13 년 전
부모
커밋
31bd304f5a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      tests/unit/core_tests.py

+ 2
- 2
tests/unit/core_tests.py 파일 보기

@@ -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:

Loading…
취소
저장