Nice. Another option I forgot to mention previously: 

    import numpy.testing as npt
    npt.assert_(matlab.is_connected(), msg = "Connection failed")

The numpy testing module has a bunch of other useful functions we might want to use later on (e.g. `npt.assert_array_equal` and 'npt.assert_array_almost_equal')