@@ -12,7 +12,8 @@ class TestSingleDeviceVVParse(unittest.TestCase):
1212
1313 DEVICE_REC = {
1414 'pci_device_string' : 'Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet (rev 20)' ,
15- 'pci_device_type' : 'Ethernet controller' ,
15+ 'pci_device_class' : '0200' ,
16+ 'pci_device_class_name' : 'Ethernet controller' ,
1617 'pci_device_bus_id' : '02:00.0' ,
1718 'pci_device_sub_string' : 'Dell Device 0488' ,
1819 'pci_device_vpd_product_name' : 'Broadcom NetXtreme II Ethernet Controller' ,
@@ -36,9 +37,9 @@ def test_pci_device_bus_id(self):
3637 rec = self .parser .parse_items ().pop ()
3738 self ._assert_rec_key (rec , 'pci_device_bus_id' )
3839
39- def test_pci_device_type (self ):
40+ def test_pci_device_class_name (self ):
4041 rec = self .parser .parse_items ().pop ()
41- self ._assert_rec_key (rec , 'pci_device_type ' )
42+ self ._assert_rec_key (rec , 'pci_device_class_name ' )
4243
4344 def test_pci_device_sub_string (self ):
4445 rec = self .parser .parse_items ().pop ()
@@ -70,7 +71,7 @@ class TestSingleDeviceNParse(unittest.TestCase):
7071 'pci_device_bus_id' : 'ff:10.5' ,
7172 'pci_vendor_id' : '8086' ,
7273 'pci_device_id' : '0eb5' ,
73- 'pci_device_type_id ' : '0880' ,
74+ 'pci_device_class ' : '0880' ,
7475 }
7576
7677 def setUp (self ):
@@ -89,8 +90,8 @@ def test_pci_vendor_id(self):
8990 def test_pci_device_id (self ):
9091 self ._assert_rec_key ('pci_device_id' )
9192
92- def test_pci_device_type_id (self ):
93- self ._assert_rec_key ('pci_device_type_id ' )
93+ def test_pci_device_class (self ):
94+ self ._assert_rec_key ('pci_device_class ' )
9495
9596class TestMultiDeviceNParse (unittest .TestCase ):
9697
@@ -113,8 +114,8 @@ class TestSingleDeviceNNMMParse(unittest.TestCase):
113114
114115 DEVICE_REC = {
115116 'pci_device_bus_id' : '02:00.0' ,
116- 'pci_device_type_id ' : '0200' ,
117- 'pci_device_type_name ' : 'Ethernet controller' ,
117+ 'pci_device_class ' : '0200' ,
118+ 'pci_device_class_name ' : 'Ethernet controller' ,
118119 'pci_vendor_name' : 'Broadcom Corporation' ,
119120 'pci_vendor_id' : '14e4' ,
120121 'pci_device_id' : '163b' ,
@@ -135,11 +136,11 @@ def _assert_rec_key(self, key):
135136 def test_pci_device_bus_id (self ):
136137 self ._assert_rec_key ('pci_device_bus_id' )
137138
138- def test_pci_device_type_id (self ):
139- self ._assert_rec_key ('pci_device_type_id ' )
139+ def test_pci_device_class (self ):
140+ self ._assert_rec_key ('pci_device_class ' )
140141
141- def test_pci_device_type_name (self ):
142- self ._assert_rec_key ('pci_device_type_name ' )
142+ def test_pci_device_class_name (self ):
143+ self ._assert_rec_key ('pci_device_class_name ' )
143144
144145 def test_pci_vendor_name (self ):
145146 self ._assert_rec_key ('pci_vendor_name' )
@@ -168,8 +169,8 @@ class LsiDeviceParse(TestSingleDeviceNNMMParse):
168169
169170 DEVICE_REC = {
170171 'pci_device_bus_id' : '03:00.0' ,
171- 'pci_device_type_id ' : '0100' ,
172- 'pci_device_type_name ' : 'SCSI storage controller' ,
172+ 'pci_device_class ' : '0100' ,
173+ 'pci_device_class_name ' : 'SCSI storage controller' ,
173174 'pci_vendor_name' : 'LSI Logic / Symbios Logic' ,
174175 'pci_vendor_id' : '1000' ,
175176 'pci_device_id' : '0058' ,
@@ -187,8 +188,8 @@ class IntelUSBControllerDeviceParse(TestSingleDeviceNNMMParse):
187188
188189 DEVICE_REC = {
189190 'pci_device_bus_id' : '00:1d.0' ,
190- 'pci_device_type_id ' : '0c03' ,
191- 'pci_device_type_name ' : 'USB controller' ,
191+ 'pci_device_class ' : '0c03' ,
192+ 'pci_device_class_name ' : 'USB controller' ,
192193 'pci_vendor_name' : 'Intel Corporation' ,
193194 'pci_vendor_id' : '8086' ,
194195 'pci_device_id' : '3b34' ,
0 commit comments