Add docstrings
Use with statement for assert_raises