def setUp(self): @route('/xyz') class XyzFake(object): pass route_redirect('/redir_elsewhere', '/abc') @route('/abc', name='abc') class AbcFake(object): pass route_redirect('/other_redir', '/abc', name='other')
def setUp(self): route._routes = [] # reach in and ensure this is clean @route('/xyz') class XyzFake(object): pass route_redirect('/redir_elsewhere', '/abc') @route('/abc', name='abc') class AbcFake(object): pass route_redirect('/other_redir', '/abc', name='other')