'Pushing a locally-owned volume writes its filesystem to the remote
process.'

def test_push_writes_filesystem(self):

    pool = FilesystemStoragePool(FilePath(self.mktemp()))
    service = VolumeService(FilePath(self.mktemp()), pool, reactor=Clock())
    service.startService()
    volume = self.successResultOf(service.create(service.get(MY_VOLUME)))
    filesystem = volume.get_filesystem()
    filesystem.get_path().child('foo').setContent('blah')
    with filesystem.reader() as reader:
        data = reader.read()
    node = FakeNode([''])
    self.successResultOf(service.push(volume, RemoteVolumeManager(node)))
    self.assertEqual(node.stdin.read(), data)
