Пример #1
0
 def test_on_SegmentChain_exclude(self):
     features = [
         SegmentChain(self.ivs[n], **self.attrs[n])
         for n in range(len(self.ivs))
     ]
     self.assertEqual(get_identical_attributes(features, exclude=["type"]),
                      self.common_attr)
Пример #2
0
 def test_on_SegmentChain_no_exclude(self):
     features = [
         SegmentChain(self.ivs[n], **self.attrs[n])
         for n in range(len(self.ivs))
     ]
     common_plus_type = copy.deepcopy(self.common_attr)
     common_plus_type["type"] = "exon"
     self.assertEqual(get_identical_attributes(features), common_plus_type)
Пример #3
0
 def test_on_SegmentChain_exclude(self):
     features = [SegmentChain(self.ivs[n],**self.attrs[n]) for n in range(len(self.ivs))]
     self.assertEqual(get_identical_attributes(features,exclude=["type"]),self.common_attr)
Пример #4
0
 def test_on_SegmentChain_no_exclude(self):
     features = [SegmentChain(self.ivs[n],**self.attrs[n]) for n in range(len(self.ivs))]
     common_plus_type = copy.deepcopy(self.common_attr)
     common_plus_type["type"] = "exon"
     self.assertEqual(get_identical_attributes(features),common_plus_type)