forked from openlp/openlp
A test that depends on re.escape's pre-3.7 behaviour fails on Python 3.7.
Make it compatible. bzr-revno: 2841
This commit is contained in:
commit
18a236b227
@ -69,7 +69,9 @@ class TestRouting(TestCase):
|
|||||||
rqst.method = 'GET'
|
rqst.method = 'GET'
|
||||||
application.dispatch(rqst)
|
application.dispatch(rqst)
|
||||||
# THEN: the not found id called
|
# THEN: the not found id called
|
||||||
assert 1 == application.route_map['^\\/test\\/image$']['GET'].call_count, \
|
route_key = next(iter(application.route_map))
|
||||||
|
assert '/image' in route_key
|
||||||
|
assert 1 == application.route_map[route_key]['GET'].call_count, \
|
||||||
'main_index function should have been called'
|
'main_index function should have been called'
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user