'``RemoteVolumeManager.snapshots`` calls ``flocker-volume`` remotely
with the ``snapshots`` sub-command.'

def test_snapshots_destination_run(self):

    node = FakeNode(['abc\ndef\n'])
    remote = RemoteVolumeManager(node, FilePath('/path/to/json'))
    snapshots = self.successResultOf(remote.snapshots(self.volume))
    self.assertEqual(node.remote_command, ['flocker-volume', '--config', '/path/to/json', 'snapshots', self.volume.node_id.encode('ascii'), 'myns.myvol'])
    self.assertEqual([Snapshot(name='abc'), Snapshot(name='def')], snapshots)
