'``VolumeService.acquire()`` errbacks with a ``ValueError`` if given a
locally-owned volume.'

def test_acquire_rejects_local_volume(self):

    service = VolumeService(FilePath(self.mktemp()), FilesystemStoragePool(FilePath(self.mktemp())), reactor=Clock())
    service.startService()
    self.addCleanup(service.stopService)
    self.failureResultOf(service.acquire(service.node_id, u'blah'), ValueError)
