'The result of ``enumerate()`` does not include any volumes representing
filesystems named outside of the Flocker naming convention (which may
have been created directly by the user).'

def test_enumerate_skips_other_filesystems(self):

    path = FilePath(self.mktemp())
    path.child('arbitrary    stuff').makedirs()
    path.child('stuff DCTB arbitrary').makedirs()
    path.child('non-uuid.stuff').makedirs()
    pool = FilesystemStoragePool(path)
    service = VolumeService(FilePath(self.mktemp()), pool, reactor=Clock())
    service.startService()
    name = VolumeName(namespace=u'mynspaces', dataset_id=u'good_volume_name')
    self.successResultOf(service.create(service.get(name)))
    volumes = list(self.successResultOf(service.enumerate()))
    self.assertEqual([Volume(node_id=service.node_id, name=name, service=service)], volumes)
