def testReadCount(self):
     """
     The readCount function must indicate how many reads matched a title.
     """
     hsp1 = HSP(7)
     hsp2 = HSP(14)
     hsp3 = HSP(21)
     titleAlignments = TitleAlignments('subject title', 55)
     read = Read('id1', 'AAA')
     titleAlignment = TitleAlignment(read, [hsp1, hsp2])
     titleAlignments.addAlignment(titleAlignment)
     read = Read('id2', 'AAA')
     titleAlignment = TitleAlignment(read, [hsp3])
     titleAlignments.addAlignment(titleAlignment)
     self.assertEqual(2, titleAlignments.readCount())
Exemple #2
0
 def testReadCount(self):
     """
     The readCount function must indicate how many reads matched a title.
     """
     hsp1 = HSP(7)
     hsp2 = HSP(14)
     hsp3 = HSP(21)
     titleAlignments = TitleAlignments('subject title', 55)
     read = Read('id1', 'AAA')
     titleAlignment = TitleAlignment(read, [hsp1, hsp2])
     titleAlignments.addAlignment(titleAlignment)
     read = Read('id2', 'AAA')
     titleAlignment = TitleAlignment(read, [hsp3])
     titleAlignments.addAlignment(titleAlignment)
     self.assertEqual(2, titleAlignments.readCount())
 def testReadCountZero(self):
     """
     The readCount function must return zero if no reads matched a title.
     """
     titleAlignments = TitleAlignments('subject title', 55)
     self.assertEqual(0, titleAlignments.readCount())
Exemple #4
0
 def testReadCountZero(self):
     """
     The readCount function must return zero if no reads matched a title.
     """
     titleAlignments = TitleAlignments('subject title', 55)
     self.assertEqual(0, titleAlignments.readCount())