def test_from_native_item():
    """
    When given a valid item, the ListOrItemField from_native method should utilize the item
    from-native logic.
    """
    field = ListOrItemField(DateField(format=ISO_8601))
    data = field.from_native(date.today().isoformat())
    assert date.today() == data
def test_from_native_list():
    """
    When given a valid list, the ListOrItemField from_native method should utilize the list
    from-native logic.
    """
    field = ListOrItemField(DateField(format=ISO_8601))
    data = field.from_native([date.today().isoformat()])
    assert [date.today()] == data