<filename>flocker/node/agents/test/strategies.py<gh_stars>1000+
# Copyright ClusterHQ Ltd.  See LICENSE file for details.

"""
Hypothesis strategies for testing ``flocker.node.agents``.
"""

from hypothesis.strategies import (
    builds,
    integers,
    none,
    text,
    uuids,
)

from ..blockdevice import BlockDeviceVolume

blockdevice_volumes = builds(
    BlockDeviceVolume,
    blockdevice_id=text(),
    size=integers(min_value=0),
    attached_to=text() | none(),
    dataset_id=uuids(),
)

<filename>flocker/node/agents/test/strategies.py<gh_stars>1000+
# Copyright ClusterHQ Ltd.  See LICENSE file for details.

"""
Hypothesis strategies for testing ``flocker.node.agents``.
"""

from hypothesis.strategies import (
    builds,
    integers,
    none,
    text,
    uuids,
)

from ..blockdevice import BlockDeviceVolume

blockdevice_volumes = builds(
    BlockDeviceVolume,
    blockdevice_id=text(),
    size=integers(min_value=0),
    attached_to=text() | none(),
    dataset_id=uuids(),
)

# Copyright ClusterHQ Ltd.  See LICENSE file for details. Hypothesis strategies for testing ``flocker.node.agents``.