comparison tests/test_uriutil.py @ 5:474c9882decf

Upgrade to Python 3.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 11 Aug 2014 22:36:47 -0700
parents f485ba500df3
children 62c7a97c8340
comparison
equal deleted inserted replaced
4:7dc71c2dc9a8 5:474c9882decf
15 UriInfo('', 'other', {'one': 'some', 'two': 'thing'})) 15 UriInfo('', 'other', {'one': 'some', 'two': 'thing'}))
16 ]) 16 ])
17 def test_parse_uri(routes, uri, expected): 17 def test_parse_uri(routes, uri, expected):
18 if expected is not None: 18 if expected is not None:
19 expected.uri = uri 19 expected.uri = uri
20 for pattern, args in routes.iteritems(): 20 for pattern, args in routes.items():
21 if 'taxonomy' not in args: 21 if 'taxonomy' not in args:
22 args['taxonomy'] = None 22 args['taxonomy'] = None
23 23
24 actual = parse_uri(routes, uri) 24 actual = parse_uri(routes, uri)
25 assert actual == expected 25 assert actual == expected