Skip to content
Snippets Groups Projects
Commit 433c6544 authored by Patrick Meidl's avatar Patrick Meidl
Browse files

added test for add_ProteinFeature

parent c7ffc26b
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ use Bio::EnsEMBL::Exon;
BEGIN { $| = 1;
use Test;
plan tests => 35;
plan tests => 36;
}
my $loaded = 0;
......@@ -123,6 +123,19 @@ ok(@domain_features == 3);
ok($translation->display_id eq $translation->stable_id);
#
# test that when manually attaching ProteinFeatures they are not loaded from
# the db
#
$translation->{'protein_features'} = undef;
my $pfa = $translation->adaptor->db->get_ProteinFeatureAdaptor;
my $protein_feature = $pfa->fetch_by_dbID(27374);
$translation->add_ProteinFeature($protein_feature);
ok(@{ $translation->get_all_ProteinFeatures } == 1);
# reset ProteinFeature cache
$translation->{'protein_features'} = undef;
#
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment