#NEWLINE# def test_claim_device_fail( self ) : #NEWLINE# #INDENT# self . _create_fake_instance ( ) #NEWLINE# devobj = pci_device . PciDevice . create ( None , dev_dict ) #NEWLINE# devobj . status = fields . PciDeviceStatus . ALLOCATED #NEWLINE# self . assertRaises ( exception . PciDeviceInvalidStatus , self . claim , self . inst )