async def METHOD_NAME(self, client):
    with pytest.raises(Exception) as excinfo:
        await client.pet.get_pet_by_id("ringo")
    assert excinfo.value.model is None  # no model attached
    assert json.loads(excinfo.value.response.text()) == "ringo is missing"
    with pytest.raises(Exception) as excinfo:
        await client.pet.get_pet_by_id("alien123")
    assert excinfo.value.model is None  # no model attached
    assert json.loads(excinfo.value.response.text()) == 123