Esempio n. 1
0
 def test_get_all_summaries(self):
     """get_all_summaries should return a list of the summaries"""
     summaries = get_all_summaries(self.rec)
     self.assertEqual(len(summaries), 2)
     self.assertEqual(isinstance(summaries,list), True)
     self.assertEqual(len(summaries[0]), 18)
     self.assertEqual(summaries[0][0], '>FIQU8OX05GCVRO')
     self.assertEqual(summaries[1][0], '>FIQU8OX05F8ILF')
Esempio n. 2
0
 def test_get_all_summaries(self):
     """get_all_summaries should return a list of the summaries"""
     summaries = get_all_summaries(self.rec)
     self.assertEqual(len(summaries), 2)
     self.assertEqual(isinstance(summaries, list), True)
     self.assertEqual(len(summaries[0]), 18)
     self.assertEqual(summaries[0][0], '>FIQU8OX05GCVRO')
     self.assertEqual(summaries[1][0], '>FIQU8OX05F8ILF')
Esempio n. 3
0
    def test_split_summary(self):
        """split_summary should return the info of a flowgram header."""
        summaries = get_all_summaries(self.rec)
        sum_dict = split_summary(summaries[0])
        self.assertEqual(len(sum_dict), 18)
        self.assertEqual(sum_dict['Name'], 'FIQU8OX05GCVRO')
        assert 'Flowgram' in sum_dict
        assert 'Bases' in sum_dict

        sum_dict = split_summary(summaries[1])
        self.assertEqual(len(sum_dict), 18)
        self.assertEqual(sum_dict['Name'], 'FIQU8OX05F8ILF')
        assert 'Flowgram' in sum_dict
        assert 'Bases' in sum_dict
Esempio n. 4
0
    def test_split_summary(self):
        """split_summary should return the info of a flowgram header."""
        summaries = get_all_summaries(self.rec)
        sum_dict = split_summary(summaries[0])
        self.assertEqual(len(sum_dict), 18)
        self.assertEqual(sum_dict['Name'], 'FIQU8OX05GCVRO')
        assert 'Flowgram' in sum_dict
        assert 'Bases' in sum_dict

        sum_dict = split_summary(summaries[1])
        self.assertEqual(len(sum_dict), 18)
        self.assertEqual(sum_dict['Name'], 'FIQU8OX05F8ILF')
        assert 'Flowgram' in sum_dict
        assert 'Bases' in sum_dict