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)
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)
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)
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)