def _check_start(self, test, expect):
        f = FrameSet(test)
        m = u'FrameSet("{0}").start() != {1}: got {2}'
        # the empty FrameSet is expected to always fail
        if not test and not expect:
            self.assertRaises(IndexError, f.start)
            return
        try:
            r = f.start()
        except Exception as err:
            r = repr(err)
        self.assertEqual(r, expect[0], m.format(test, expect[0], r))
        m = u'FrameSet("{0}").start() returns {1}: got {2}'
        self.assertIsInstance(r, int, m.format(test, int, type(r)))
Handle a error message.
dataset/ETHPy150Open sqlboy/fileseq/test/run.py/TestFrameSet._check_start--crossover with--dataset/ETHPy150Open bfrog/whizzer/whizzer/rpc/picklerpc.py/PickleProxy.error