Sha256: 150f6e59ed38b31198b4ba453e9af887ff22feaf57984eb32f62d82c741169b4

Contents?: true

Size: 844 Bytes

Versions: 18

Compression:

Stored size: 844 Bytes

Contents

#
# test/unit/bio/db/embl/test_uniprot.rb - Unit test for Bio::UniProt
#
# Copyright::  Copyright (C) 2005 Mitsuteru Nakao <n@bioruby.org>
# License::    The Ruby License
#
#  $Id: test_uniprot.rb,v 1.5 2007/04/05 23:35:43 trevor Exp $
#

require 'pathname'
libpath = Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 5, 'lib')).cleanpath.to_s
$:.unshift(libpath) unless $:.include?(libpath)

require 'test/unit'
require 'bio/db/embl/uniprot'

module Bio
  class TestUniProt < Test::Unit::TestCase

    def setup
    bioruby_root = Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 5)).cleanpath.to_s
      data = File.open(File.join(bioruby_root, 'test', 'data', 'uniprot', 'p53_human.uniprot')).read
      @obj = Bio::UniProt.new(data)
    end

    def test_gene_name
      assert_equal('TP53', @obj.gene_name)
    end

  end
end

Version data entries

18 entries across 18 versions & 5 rubygems

Version Path
bioruby-bio-1.2.9.9001 test/unit/bio/db/embl/test_uniprot.rb
bioruby-bio-1.2.9.9501 test/unit/bio/db/embl/test_uniprot.rb
bioruby-bio-1.3.0.5000 test/unit/bio/db/embl/test_uniprot.rb
bioruby-bio-1.3.0.9901 test/unit/bio/db/embl/test_uniprot.rb
bioruby-bio-1.3.0 test/unit/bio/db/embl/test_uniprot.rb
bioruby-bio-1.3.1.5000 test/unit/bio/db/embl/test_uniprot.rb
jandot-bio-1.2.1 test/unit/bio/db/embl/test_uniprot.rb
ngoto-bio-1.2.9.9001 test/unit/bio/db/embl/test_uniprot.rb
ngoto-bio-1.2.9.9501 test/unit/bio/db/embl/test_uniprot.rb
ngoto-bio-1.3.0.5000 test/unit/bio/db/embl/test_uniprot.rb
ngoto-bio-1.3.0 test/unit/bio/db/embl/test_uniprot.rb
ngoto-bio-1.3.1.5000 test/unit/bio/db/embl/test_uniprot.rb
wwood-bioruby-1.2.11 test/unit/bio/db/embl/test_uniprot.rb
bio-1.3.1 test/unit/bio/db/embl/test_uniprot.rb
bio-1.2.1 test/unit/bio/db/embl/test_uniprot.rb
bio-1.1.0 test/unit/bio/db/embl/test_uniprot.rb
bio-1.2.0 test/unit/bio/db/embl/test_uniprot.rb
bio-1.3.0 test/unit/bio/db/embl/test_uniprot.rb