def test_are_all_sequence_names_unique(self):
     validate_fasta = ValidateFastaAlignment('gubbins/tests/data/all_unique_sequence_names.fa')
     self.assertTrue(validate_fasta.are_sequence_names_unique())
     self.assertTrue(validate_fasta.is_input_fasta_file_valid())
     
     validate_fasta = ValidateFastaAlignment('gubbins/tests/data/non_unique_sequence_names.fa')
     self.assertFalse(validate_fasta.are_sequence_names_unique())
     self.assertFalse(validate_fasta.is_input_fasta_file_valid())
Exemplo n.º 2
0
    def test_are_all_sequence_names_unique(self):
        validate_fasta = ValidateFastaAlignment(
            'gubbins/tests/data/all_unique_sequence_names.fa')
        self.assertTrue(validate_fasta.are_sequence_names_unique())
        self.assertTrue(validate_fasta.is_input_fasta_file_valid())

        validate_fasta = ValidateFastaAlignment(
            'gubbins/tests/data/non_unique_sequence_names.fa')
        self.assertFalse(validate_fasta.are_sequence_names_unique())
        self.assertFalse(validate_fasta.is_input_fasta_file_valid())
    def test_are_all_sequence_names_unique(self):
        validate_fasta = ValidateFastaAlignment(
            os.path.join(data_dir, 'all_unique_sequence_names.fa'))
        self.assertTrue(validate_fasta.are_sequence_names_unique())
        self.assertTrue(validate_fasta.is_input_fasta_file_valid())

        validate_fasta = ValidateFastaAlignment(
            os.path.join(data_dir, 'non_unique_sequence_names.fa'))
        self.assertFalse(validate_fasta.are_sequence_names_unique())
        self.assertFalse(validate_fasta.is_input_fasta_file_valid())