improve readability of expect..raise block