'The status_code property is present with 500 response.'

def test_status_code_500(self):

    resp = requests.Response()
    resp.status_code = 500
    err = APIError('', response=resp)
    assert (err.status_code == 500)
