'Tests that we can run a simple DLLList Action.'

@RequireTestImage
def testDLLList(self):

    request = rdf_rekall_types.RekallRequest()
    request.plugins = [rdf_rekall_types.PluginRequest(plugin='dlllist', args=dict(proc_regex='dumpit', method='PsActiveProcessHead'))]
    session_id = self.LaunchRekallPlugin(request)
    fd = flow.GRRFlow.ResultCollectionForFID(session_id, token=self.token)
    json_blobs = [x.json_messages for x in fd]
    json_blobs = ''.join(json_blobs)
    for knownresult in ['DumpIt', 'wow64win', 'wow64', 'wow64cpu', 'ntdll']:
        self.assertTrue((knownresult in json_blobs))
