'Make sure that well known flows can run on the front end.'

def testWellKnownFlows(self):

    flow_test_lib.WellKnownSessionTest.messages = []
    session_id = flow_test_lib.WellKnownSessionTest.well_known_session_id
    messages = [rdf_flows.GrrMessage(request_id=0, response_id=0, session_id=session_id, payload=rdfvalue.RDFInteger(i)) for i in range(1, 10)]
    self.server.ReceiveMessages(self.client_id, messages)
    self.server.thread_pool.Join()
    flow_test_lib.WellKnownSessionTest.messages.sort()
    self.assertEqual(flow_test_lib.WellKnownSessionTest.messages, list(range(1, 10)))
    self.assertEqual([], data_store.DB.ResolvePrefix(self.client_id, 'task:', token=self.token))
