コード例 #1
0
ファイル: test_common.py プロジェクト: zzygyx9119/plastid
 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
ファイル: test_common.py プロジェクト: zzygyx9119/plastid
 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
ファイル: test_common.py プロジェクト: joshuagryphon/plastid
 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
ファイル: test_common.py プロジェクト: joshuagryphon/plastid
 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)