move this line outside `assertRaises` (keep `assertRaises` blocks as small as possible so it's clear what is expected to throw the error)