diff options
author | gebele <gebele@in-silico.ch> | 2012-05-07 16:57:15 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2012-05-07 16:57:15 +0200 |
commit | 6596ff877e655433ff42d9c1c785bb4c71eb244a (patch) | |
tree | 51491a33e78a7cb6aac6b7ac53d86dcf0353a7af | |
parent | d38ccfed10c176b457890037e8fcc4d9b7760322 (diff) |
remove rdf_check
-rw-r--r-- | test/rdf_check.rb | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/test/rdf_check.rb b/test/rdf_check.rb deleted file mode 100644 index d8838a5..0000000 --- a/test/rdf_check.rb +++ /dev/null @@ -1,47 +0,0 @@ -require File.join(File.expand_path(File.dirname(__FILE__)),"setup.rb") - -class UploadTest < Test::Unit::TestCase - - def setup - end - - def teardown - end - - def test_01_check_rdf_with_ToxBank_specific_fields_on_BII_I_1 - id = OpenTox::Authorization.authenticate($aa[:user],$aa[:password]) - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/0`.chomp - assert_match /[Term Source Name, OBI, DOID, BTO, NEWT, UO, CHEBI, PATO, TBP, TBC, TBO, TBU, TBK]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/0`.chomp - assert_match /[Investigation Identifier, BII\-I\-1]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/0`.chomp - assert_match /[Investigation Title, Growth control of the eukaryote cell\: a systems biology study in yeast]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/0`.chomp - assert_match /[Investigation Description, Background Cell growth underlies many key cellular and developmental processes]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/0`.chomp - assert_match /[Owning Organisation URI, TBO\:G176, Public]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/0`.chomp - assert_match /[Consortium URI, TBC\:G2, Douglas Connect]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/0`.chomp - assert_match /[Principal Investigator URI, TBU\:U115, Glenn Myatt]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/0`.chomp - assert_match /[Investigation keywords, TBK\:Blotting, Southwestern;TBK\:Molecular Imaging;DOID\:primary carcinoma of the liver cells]/, response - end - - def test_02_check_rdf_with_ToxBank_specific_fields_on_E_MTAB - id = OpenTox::Authorization.authenticate($aa[:user],$aa[:password]) - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/2`.chomp - assert_match /[Investigation Identifier, E\-MTAB\-798]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/2`.chomp - assert_match /[Investigation Title, Open TG\-GATEs \(in vitro, human\)]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/2`.chomp - assert_match /[Investigation Description, The Toxicogenomics Project was a 5\-year collaborative project]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/2`.chomp - assert_match /[Owning Organisation URI, TBO\:G176, Public]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/2`.chomp - assert_match /[Consortium URI, TBC:G2, Douglas Connect]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/2`.chomp - assert_match /[Investigation keywords, TBK\:Fluxomics]/, response - end - -end |