Spaces:
Running
Running
File size: 624 Bytes
f82850d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
from core.state import FileObject
from core.state import FileSet
from .resources import _create_instance1_from_instance2
def test_create_instance1_from_instance2():
file_object = FileObject(
name="name",
description="description",
contained_in=["foo", "bar"],
content_url="mlcommons.com",
)
file_set = _create_instance1_from_instance2(file_object, FileSet)
assert isinstance(file_set, FileSet)
assert file_set.name == "name"
assert file_set.description == "description"
assert file_set.contained_in == ["foo", "bar"]
assert file_set.encoding_format == None
|