This is fine. For more complex cases, the context manager can be clearer `with self.assertRaises(Error): ...`