def METHOD_NAME(self):
    d1 = cuda.Device()
    d2 = cuda.Device.from_pci_bus_id(d1.pci_bus_id)
    assert d1 == d2
    d3 = cuda.Device(d2)
    assert d2 == d3
    with pytest.raises(cuda.runtime.CUDARuntimeError) as excinfo:
        cuda.Device.from_pci_bus_id('fake:id')
        assert excinfo == 'cudaErrorInvalidValue: invalid argument'
    with pytest.raises(cuda.runtime.CUDARuntimeError) as excinfo:
        cuda.Device.from_pci_bus_id('FFFF:FF:FF.F')
        assert excinfo == 'cudaErrorInvalidDevice: invalid device ordinal'