Example #1
0
def test_invalid_version_from_metadata(metadata, exc):
    with pytest.raises(exc):
        version_from_metadata(metadata)
Example #2
0
def test_valid_version_from_metadata(metadata, version):
    assert version_from_metadata(metadata) == version