

def test_exception_status(self):
    e = exceptions.BadRequest()
    e.assertEqual(e.status_code, 400)
    e = exceptions.BadRequest(status_code=499)
    self.assertEqual(e.status_code, 499)
    e = exceptions.SslCertificateValidationError()
    self.assertIsNotNone(e.status_code)
    e = exceptions.SslCertificateValidationError(status_code=599)
    self.assertEqual(e.status_code, 599)

dataset/ETHPy150Open openstack/python-group-based-policy-client/gbpclient/tests/unit/test_cli20.py CLITestV20ExceptionHandler.test_exception_status/VarMisuse@18/22 `self`->`e`