def test_param_get(self): 'Get param from url' u = URL('/path/to/something', query=dict(id=3, page=5, title='title')) page = u.get('page') self.assertEqual(page, 5) u = u.set(page=7) page = u.get('page') self.assertEqual(page, 7) not_here = u.get('not_here') self.assertEqual(not_here, None)