def test_series_format():
    """Test series format."""
    result = 'serie 1; serie 2, 2018'
    assert result == series_format([{
        'name': 'serie 1'
    }, {
        'name': 'serie 2',
        'number': '2018'
    }])
def test_series_format():
    """Test series format."""
    serie = {
        "seriesTitle": [{
            "value": "Materialis Programm"
        }],
        "seriesEnumeration": [{
            "value": "MP 31"
        }],
        "subseriesStatement": [{
            "subseriesTitle": [{
                "value": "Kollektion: Philosophie"
            }]
        }]
    }
    result = [{
        'language': 'default',
        'value': 'Materialis Programm; MP 31. Kollektion: Philosophie'
    }]
    assert result == series_format(serie)