#NEWLINE# def testRunWMIComputerSystemProductArtifact( self ) : #NEWLINE# #INDENT# class WMIActionMock ( action_mocks . ActionMock ) : #NEWLINE# #INDENT# def WmiQuery( self , _ ) : #NEWLINE# #INDENT# return client_fixture . WMI_CMP_SYS_PRD #NEWLINE# #UNINDENT# #UNINDENT# client_mock = WMIActionMock ( ) #NEWLINE# for _ in test_lib . TestFlowHelper ( 'ArtifactCollectorFlow' , client_mock , artifact_list = [ 'WMIComputerSystemProduct' ] , token = self . token , client_id = self . client_id , dependencies = artifact_utils . ArtifactCollectorFlowArgs . Dependency . IGNORE_DEPS , store_results_in_aff4 = True ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# client = aff4 . FACTORY . Open ( self . client_id , token = self . token ) #NEWLINE# hardware = client . Get ( client . Schema . HARDWARE_INFO ) #NEWLINE# self . assertTrue ( isinstance ( hardware , rdf_client . HardwareInfo ) ) #NEWLINE# self . assertEqual ( str ( hardware . serial_number ) , '2RXYYZ1' ) #NEWLINE# self . assertEqual ( str ( hardware . system_manufacturer ) , 'Dell Inc.' )