예제 #1
0
    def test_check_fasta_seqs_lens(self):
        """ Properly returns, sorts sequence lengths """

        actual_seq_lens = check_fasta_seqs_lens(self.sample_fasta_fp)

        # All seq lengths different

        expected_seq_lens = [(1, 35), (1, 32), (1, 27)]

        self.assertEqual(actual_seq_lens, expected_seq_lens)

        actual_seq_lens = check_fasta_seqs_lens(self.sample_fasta_invalid_fp)

        # Should have two seq lens of 35

        expected_seq_lens = [(2, 35), (1, 33), (1, 25)]

        self.assertEqual(actual_seq_lens, expected_seq_lens)
    def test_check_fasta_seqs_lens(self):
        """ Properly returns, sorts sequence lengths """

        actual_seq_lens = check_fasta_seqs_lens(self.sample_fasta_fp)

        # All seq lengths different

        expected_seq_lens = [(1, 35), (1, 32), (1, 27)]

        self.assertEqual(actual_seq_lens, expected_seq_lens)

        actual_seq_lens = check_fasta_seqs_lens(self.sample_fasta_invalid_fp)

        # Should have two seq lens of 35

        expected_seq_lens = [(2, 35), (1, 33), (1, 25)]

        self.assertEqual(actual_seq_lens, expected_seq_lens)