def test_invalid_schema_version(version): with pytest.raises(Exception) as excinfo: get_schema_version(version) assert str(excinfo.value) == "Unsupported OMERO version: %s" % version
def test_invalid_omero_version(version): with pytest.raises(Exception) as excinfo: get_schema_version(version) assert str(excinfo.value) == "Invalid OMERO version number: %s" % version
def test_schema_version(f): assert get_schema_version(f.omero_version) == f.schema_version