'The output of ``flocker-volume snapshots`` is the name of each snapshot
that exists for the identified filesystem, one per line.'

@_require_installed
def test_snapshots(self):

    pool_name = create_zfs_pool(self)
    dataset = (pool_name + '/myuuid.myns.myfilesystem')
    check_output(['zfs', 'create', '-p', dataset])
    check_output(['zfs', 'snapshot', (dataset + '@somesnapshot')])
    check_output(['zfs', 'snapshot', (dataset + '@lastsnapshot')])
    config_path = FilePath(self.mktemp())
    snapshots = run('--config', config_path.path, '--pool', pool_name, 'snapshots', 'myuuid', 'myns.myfilesystem')
    self.assertEqual(snapshots, 'somesnapshot\nlastsnapshot\n')
