'Check that flows which call to incorrect states raise.'

def testBrokenFlow(self):

    client_mock = action_mocks.ActionMock(standard.ReadBuffer)
    with self.assertRaises(RuntimeError):
        for _ in flow_test_lib.TestFlowHelper(flow_test_lib.BrokenFlow.__name__, client_mock, client_id=self.client_id, check_flow_errors=True, token=self.token):
            pass
