Commit 0be94983 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil
Browse files

test that EColi model from BIGG loads correctly

this checks whether the fix of #16 works
parent 8e78100e
sbmlfile = "EColi.xml" sbmlfile = "Ec_core_flux1.xml"
if !isfile(sbmlfile) if !isfile(sbmlfile)
download("http://systemsbiology.ucsd.edu/sites/systemsbiology.ucsd.edu/files/Attachments/Images/InSilicoOrganisms/Ecoli/Ecoli_SBML/Ec_core_flux1.xml", sbmlfile) download("http://systemsbiology.ucsd.edu/sites/systemsbiology.ucsd.edu/files/Attachments/Images/InSilicoOrganisms/Ecoli/Ecoli_SBML/Ec_core_flux1.xml", sbmlfile)
...@@ -10,7 +10,7 @@ if cksum != "01a883b364fa60582101ca1e270515e7fcb3fb2f60084d92e5ee45f9f72bbe50" ...@@ -10,7 +10,7 @@ if cksum != "01a883b364fa60582101ca1e270515e7fcb3fb2f60084d92e5ee45f9f72bbe50"
@warn "The downloaded E Coli core flux model seems to be different from the expected one. Tests will likely fail." cksum @warn "The downloaded E Coli core flux model seems to be different from the expected one. Tests will likely fail." cksum
end end
@testset "SBML model loading" begin @testset "SBML flux model loading" begin
mdl = readSBML(sbmlfile) mdl = readSBML(sbmlfile)
@test typeof(mdl) == Model @test typeof(mdl) == Model
......
sbmlfile = "e_coli_core.xml"
if !isfile(sbmlfile)
download("http://bigg.ucsd.edu/static/models/e_coli_core.xml", sbmlfile)
end
cksum = bytes2hex(sha256(open(sbmlfile)))
if cksum != "b4db506aeed0e434c1f5f1fdd35feda0dfe5d82badcfda0e9d1342335ab31116"
@warn "The downloaded E Coli core model seems to be different from the expected one. Tests will likely fail." cksum
end
@testset "SBML model-only file loading" begin
mdl = readSBML(sbmlfile)
@test typeof(mdl) == Model
mets, rxns, _ = getS(mdl)
@test length(mets) == 72
@test length(rxns) == 95
end
...@@ -5,5 +5,6 @@ import Pkg ...@@ -5,5 +5,6 @@ import Pkg
@testset "SBML test suite" begin @testset "SBML test suite" begin
include("version.jl") include("version.jl")
include("loadEColi.jl") include("ecoli_flux.jl")
include("ecoli_modelonly.jl")
end end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment