summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-08-22 16:24:50 +0000
committerChristoph Helma <helma@in-silico.ch>2011-08-22 16:24:50 +0000
commit95e8205415932112eb6dd3393b861fad7a52f3d4 (patch)
tree4a9fdc0294892ffb1de8bea805fc6843abf7fc18
parent13832c4fa41d50eac7e12c22fa7668553dfbf081 (diff)
tests for prediction features added
-rw-r--r--feature.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/feature.rb b/feature.rb
index c06f9f5..0c9d097 100644
--- a/feature.rb
+++ b/feature.rb
@@ -8,7 +8,9 @@ class FeatureTest < Test::Unit::TestCase
def setup
@features = [
@@classification_training_dataset.features.keys.first,
- "http://apps.ideaconsult.net:8080/ambit2/feature/35796"
+ "http://apps.ideaconsult.net:8080/ambit2/feature/35796",
+ File.join(OpenTox::Model::Lazar.all.last,"predicted","value")
+
]
end
@@ -16,6 +18,7 @@ class FeatureTest < Test::Unit::TestCase
@features.each do |uri|
+ puts uri
f = OpenTox::Feature.new(uri)
f.load_metadata(@@subjectid)
assert_not_nil f.metadata[DC.title]
@@ -26,6 +29,7 @@ class FeatureTest < Test::Unit::TestCase
def test_owl
#@features.each do |uri|
validate_owl @features.first, @@subjectid unless CONFIG[:services]["opentox-dataset"].match(/localhost/)
+ validate_owl @features.last, @@subjectid unless CONFIG[:services]["opentox-dataset"].match(/localhost/)
# Ambit does not validate
#end
end