示例#1
0
 def testIsValidFalseAnnot(self):
     false_annot_null = annot.Annotation("slr0399_synechocystis", [])
     self.failIf(false_annot_null.is_valid())
     false_annot_single_ko = annot.Annotation('hsa:124', [['K00002',], ])
     self.failIf(false_annot_single_ko.is_valid())
     false_annot_multi_kos = annot.Annotation('hsa:124', [['K00001',], ['K00002',] ])
     self.failIf(false_annot_multi_kos.is_valid())
示例#2
0
 def testTestKos(self):
     myannot = annot.Annotation('hsa:10020', [['K01791',], ['K00885',]])
     kos = ['K01791', 'K00885']
     self.failUnlessEqual(myannot.get_kos(), kos)
示例#3
0
 def testIsValidTrueAnnot(self):
     true_annot_single_ko = annot.Annotation('hsa:124', [['K00001',],])
     self.assert_(true_annot_single_ko.is_valid())
示例#4
0
 def testHasKoNullAnnot(self):
     """ test for methd: has_ko
     """
     null_annot = annot.Annotation("slr0399_synechocystis", ['K00001',])
     self.assert_(null_annot.has_ko())
示例#5
0
 def testHasKoNullAnnot(self):
     """ test for methd: has_ko
     """
     null_annot = annot.Annotation("slr0399_synechocystis", [])
     self.failIf(null_annot.has_ko())