'Get an instance of the extended urllib and verify that the redirect
handler still works, even when mixed with all the other handlers.'

@attr('moth')
def test_handler_order(self):

    redirect_url = URL(get_moth_http(self.REDIRECT_URL))
    settings = opener_settings.OpenerSettings()
    settings.build_openers()
    opener = settings.get_custom_opener()
    request = HTTPRequest(redirect_url)
    response = opener.open(request)
    self.assertEqual(response.code, FOUND)
    self.assertEqual(response.id, 1)
