Is there a reason you didn't use `assert_raises` here?