#NEWLINE# def test_object_create( self ) : #NEWLINE# #INDENT# m = self . pci_stats . to_device_pools_obj ( ) #NEWLINE# new_stats = stats . PciDeviceStats ( m ) #NEWLINE# self . assertEqual ( len ( new_stats . pools ) , 3 ) #NEWLINE# self . assertEqual ( set ( [ d [ 'count' ] for d in new_stats ] ) , set ( [ 1 , 2 ] ) ) #NEWLINE# self . assertEqual ( set ( [ m [ 'vendor_id' ] for d in new_stats ] ) , set ( [ 'v1' , 'v2' , 'v3' ] ) )