Sha256: 0fc388f8e895819495c3e60a50b7cf89534122aa5999a061a6d08f9a95fe2d2c

Contents?: true

Size: 628 Bytes

Versions: 4

Compression:

Stored size: 628 Bytes

Contents

require 'test/unit'
require 'voruby/resources/conesearch/conesearch_v0_3'

include VORuby::Resources::ConeSearch::V0_3

class ConeSearchTest < Test::Unit::TestCase
  def setup
    assert_nothing_raised {
       @res = ConeSearch.load_from_file('test/resources/conesearch/conesearch_v0_3.xml')
     }
  end
  
  def test_capability
    assert_equal(180, @res.capability.max_sr)
    assert_equal(100, @res.capability.max_records)
    assert_equal(false, @res.capability.verbosity)
  end
  
  def test_interface
    assert_equal('http://archive.stsci.edu/copernicus/search.php?', @res.interfaces[0].access_url.value.to_s)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
voruby-1.0.1 test/resources/conesearch/unittest_v0_3.rb
voruby-1.1.1 test/resources/conesearch/unittest_v0_3.rb
voruby-1.1 test/resources/conesearch/unittest_v0_3.rb
voruby-1.0.2 test/resources/conesearch/unittest_v0_3.rb