diff --git a/tests/urlpatterns_reverse/tests.py b/tests/urlpatterns_reverse/tests.py
index 18299fe..8175985 100644
a
|
b
|
class URLPatternReverse(TestCase):
|
222 | 222 | # exception |
223 | 223 | self.fail("Expected a NoReverseMatch, but none occurred.") |
224 | 224 | |
| 225 | def test_script_name_escaping(self): |
| 226 | from django.core.urlresolvers import get_script_prefix, set_script_prefix |
| 227 | old_prefix = get_script_prefix() |
| 228 | set_script_prefix('/script:name/') |
| 229 | try: |
| 230 | self.assertEqual( |
| 231 | reverse('optional', args=['foo:bar']), |
| 232 | '/script:name/optional/foo:bar/', |
| 233 | ) |
| 234 | finally: |
| 235 | set_script_prefix(old_prefix) |
| 236 | |
225 | 237 | def test_reverse_returns_unicode(self): |
226 | 238 | name, expected, args, kwargs = test_data[0] |
227 | 239 | self.assertIsInstance( |