def test_migrate_from_block_to_network(self): conf = drive_config(path='/blockdomain/volume') drive = Drive({}, self.log, **conf) self.assertTrue(drive.blockDev) # Migrate drive to netowrk (not sure we will support this)... drive.path = "rbd:pool/volume" drive.volumeInfo = {'volType': 'network'} self.assertFalse(drive.blockDev)