summaryrefslogtreecommitdiff
path: root/test/feature.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2012-04-26 16:04:05 +0200
committerChristoph Helma <helma@in-silico.ch>2012-04-26 16:04:05 +0200
commitf8b6f8d19566d372e47edba7968ce66ff09052c9 (patch)
tree507b4ffe74bf63bbe8664aac2b3c57efae8717ab /test/feature.rb
parentb01dce14f765875d7c75edb545323b444fa2b140 (diff)
tests removed, URI.accessible? check temporarily removed
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