<filename>property_data/tests/unit/models/py/test_property_set.py<gh_stars>0
from uuid import uuid4

from wattle.core.models.db.user import User
from wattle.property_data.models.py import PropertySetCreateModel


def test_create_model():

    data = PropertySetCreateModel(
        description="description",
        status="status",
        source="source",
        activate_on_upload=False,
        user=User(id=uuid4()),
    )

    assert data.description == "description"
    assert data.status == "status"
    assert data.source == "source"
    assert data.activate_on_upload == False

<filename>property_data/tests/unit/models/py/test_property_set.py<gh_stars>0
from uuid import uuid4

from wattle.core.models.db.user import User
from wattle.property_data.models.py import PropertySetCreateModel


def test_create_model():

    data = PropertySetCreateModel(
        description="description",
        status="status",
        source="source",
        activate_on_upload=False,
        user=User(id=uuid4()),
    )

    assert data.description == "description"
    assert data.status == "status"
    assert data.source == "source"
    assert data.activate_on_upload == False
