'If a volume is attached but not mounted, it is included as a
volume by ``BlockDeviceDeployer._discover_raw_state``.'

def test_unattached_unmounted_device(self):

    unmounted = self.api.create_volume(dataset_id=uuid4(), size=LOOPBACK_MINIMUM_ALLOCATABLE_SIZE)
    raw_state = self.deployer._discover_raw_state()
    self.assertEqual(raw_state.volumes, [unmounted])
