def test_get_output_filepaths(self): """ Properly generates output filepath names """ uc_res = \ get_output_filepaths("/tmp/", "test_seqs.fasta") self.assertEqual(uc_res, "/tmp/test_seqs_clusters.uc")
def test_get_output_filepaths(self): """ Properly generates output filepath names """ uc_res = \ get_output_filepaths("/tmp/","test_seqs.fasta") self.assertEqual(uc_res, "/tmp/test_seqs_clusters.uc")
def test_get_output_filepaths(self): """ Properly generates output filepath names """ fasta_res, uc_res, cd_hit_res, output_dir_res = \ get_output_filepaths("/tmp/","test_seqs.fasta") self.assertEqual(fasta_res, "/tmp/test_seqs_sorted.fasta") self.assertEqual(uc_res, "/tmp/test_seqs_sorted.uc") self.assertEqual(cd_hit_res, "/tmp/test_seqs_cdhit.clstr") self.assertEqual(output_dir_res, "/tmp") fasta_res, uc_res, cd_hit_res, output_dir_res = \ get_output_filepaths(".","test_seqs.fasta") self.assertEqual(fasta_res, ".//test_seqs_sorted.fasta") self.assertEqual(uc_res, ".//test_seqs_sorted.uc") self.assertEqual(cd_hit_res, ".//test_seqs_cdhit.clstr") self.assertEqual(output_dir_res, "./")
def test_get_output_filepaths_multiple_dots(self): """Generates filepath names from names with more than one dot""" obs = get_output_filepaths("/tmp", "test_seqs.filtered.fasta") self.assertEqual(obs, "/tmp/test_seqs.filtered_clusters.uc")
def test_get_output_filepaths_multiple_dots(self): """Generates filepath names from names with more than one dot""" obs = get_output_filepaths("/tmp", "test_seqs.filtered.fasta") self.assertEqual(obs, "/tmp/test_seqs.filtered_clusters.uc")