[BioRuby-cvs] bioruby/test/unit/bio/io test_ensembl.rb,1.2,1.3

Mitsuteru C. Nakao nakao at dev.open-bio.org
Wed Mar 28 12:01:02 UTC 2007


Update of /home/repository/bioruby/bioruby/test/unit/bio/io
In directory dev.open-bio.org:/tmp/cvs-serv6728/test/unit/bio/io

Modified Files:
	test_ensembl.rb 
Log Message:
* Added TestEnsembl_v14 class.


Index: test_ensembl.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/io/test_ensembl.rb,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_ensembl.rb	27 Apr 2006 05:38:50 -0000	1.2
--- test_ensembl.rb	28 Mar 2007 12:01:00 -0000	1.3
***************
*** 2,6 ****
  # = test/unit/bio/io/test_ensembl.rb - Unit test for Bio::Ensembl.
  #
! # Copyright::   Copyright (C) 2006
  #               Mitsuteru C. Nakao <n at bioruby.org>
  # License::     Ruby's
--- 2,6 ----
  # = test/unit/bio/io/test_ensembl.rb - Unit test for Bio::Ensembl.
  #
! # Copyright::   Copyright (C) 2006, 2007
  #               Mitsuteru C. Nakao <n at bioruby.org>
  # License::     Ruby's
***************
*** 16,19 ****
--- 16,49 ----
  require 'bio/io/ensembl'
  
+ # tests for ensembl.rb,v 1.4
+ class TestEnsembl_v14 < Test::Unit::TestCase
+   def test_ensembl_url
+     assert_equal('http://www.ensembl.org', Bio::Ensembl::ENSEMBL_URL)
+   end
+   
+   def test_server
+     obj = Bio::Ensembl.new('Homo_sapiens')
+     assert_equal('http://www.ensembl.org', obj.server)
+   end
+ 
+   def test_organism
+     organism = 'Homo_sapiens'
+     obj = Bio::Ensembl.new(organism)
+     assert_equal(organism, obj.organism)
+   end
+   
+   def test_self_human
+     organism = 'Homo_sapiens'    
+     obj = Bio::Ensembl.human
+     assert_equal(organism, obj.organism)
+   end
+ 
+   def test_self_mouse
+     organism = 'Mus_musculus'
+     obj = Bio::Ensembl.mouse
+     assert_equal(organism, obj.organism)
+   end
+ end
+ 
  
  class TestEnsembl < Test::Unit::TestCase
***************
*** 33,36 ****
--- 63,67 ----
  end
  
+ 
  class TestEnsemblBase < Test::Unit::TestCase
    def test_exportview




More information about the bioruby-cvs mailing list