def test_unavailability(self):
    validator = RequestValidator()
    server = Server(validator)
    server.available = False
    (h, b, s) = server.create_authorization_response('https://example.com')
    self.assertIn('temporarily_unavailable', b)
    self.assertEqual(s, 503)
def test_unavailability(self):
    validator = RequestValidator()
    server = Server(validator)
    server.available = False
    (h, b, s) = server.create_authorization_response('https://example.com')
    self.assertIn('temporarily_unavailable', b)
    self.assertEqual(s, 503)