'If no C{message} argument is passed to the L{PageRedirect} constructor
and the C{code} argument is a valid HTTP status code, C{code} is mapped
to a descriptive string to which C{message} is assigned.'

def test_noMessageValidStatus(self):

    e = error.PageRedirect('200', location='/foo')
    self.assertEqual(e.message, 'OK    to    /foo')
