consider assertRaisesMessage so you can check the error message as well.