summaryrefslogtreecommitdiff
path: root/test/feature.rb
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2012-05-07 17:48:06 +0200
committerrautenberg <rautenberg@in-silico.ch>2012-05-07 17:48:06 +0200
commitd6f9c38c44fd6b7e41eca1f57451cc452cc4eec7 (patch)
tree23131e2f6a4d48f1af444a406479edd71d47c9bd /test/feature.rb
parente55a25e9fb0c91a581f898ce894a27e8bdd3d780 (diff)
parent6f25a7f04863b4fc6dccab59d690695371f1f0c7 (diff)
Merge branch 'release/v0.0.3'HEADv0.0.3master
Diffstat (limited to 'test/feature.rb')
-rw-r--r--test/feature.rb36
1 files changed, 0 insertions, 36 deletions
diff --git a/test/feature.rb b/test/feature.rb
deleted file mode 100644
index f37f298..0000000
--- a/test/feature.rb
+++ /dev/null
@@ -1,36 +0,0 @@
-require 'test/unit'
-$LOAD_PATH << File.join(File.dirname(__FILE__),'..','lib')
-require File.join File.dirname(__FILE__),'..','lib','opentox-client.rb'
-
-class FeatureTest < Test::Unit::TestCase
-
- def setup
- @features = [
- #@@classification_training_dataset.features.keys.first,
- "http://apps.ideaconsult.net:8080/ambit2/feature/35796",
- #File.join(OpenTox::Model::Lazar.all.last,"predicted","value")
-
- ]
- end
-
- def test_feature
- @features.each do |uri|
- f = OpenTox::Feature.new(uri)
- assert_equal RDF::OT1.TUM_CDK_nAtom, f[RDF::OWL.sameAs]
- assert_equal RDF::OT1.TUM_CDK_nAtom, f.metadata[RDF::OWL.sameAs].first.to_s
- assert_equal [RDF::OT1.Feature,RDF::OT1.NumericFeature].sort, f[RDF.type].sort
- end
- end
-
-=begin
- 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
-=end
-
-
-end