'L{redirectTo} will raise TypeError if unicode object is passed in URL'

def test_redirectToUnicodeURL(self):

    request = Request(DummyChannel(), True)
    request.method = 'GET'
    targetURL = u'http://target.example.com/4321'
    self.assertRaises(TypeError, redirectTo, targetURL, request)
