I would use [raises](https://nose.readthedocs.org/en/latest/testing_tools.html#nose.tools.raises) for this. eg.

```
@raises(MalformedDocxException)
def test_malformed_docx_exception():
    ...
```