Skip to content

Commit

Permalink
fix TNT tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosp420 committed Aug 25, 2015
1 parent 0f65e67 commit f1fa4e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions voseq/create_dataset/tests/tests_create_tnt_dataset.py
Expand Up @@ -25,7 +25,7 @@ def setUp(self):
'taxon_names': ['CODE', 'GENUS', 'SPECIES'],
'number_genes': None,
'degen_translations': None,
'positions': ['2nd', '3rd'],
'positions': ['1st', '2nd'],
'partition_by_positions': 'ONE',
'file_format': 'TNT',
'aminoacids': False,
Expand All @@ -37,15 +37,15 @@ def setUp(self):
self.maxDiff = None

def test_create_dataset(self):
expected = 'nstates dna;\nxread\n1525 2\n\n[&dna]\nCP100-10_Melitaea_diamina'
expected = 'nstates dna;\nxread\n1524 2\n\n[&dna]\nCP100-10_Melitaea_diamina'
result = self.dataset_creator.dataset_str
self.assertTrue(expected in result)

def test_create_dataset_outgroup(self):
cleaned_data = self.cleaned_data
cleaned_data['outgroup'] = 'CP100-11'
dataset_creator = CreateDataset(cleaned_data)
expected = 'nstates dna;\nxread\n1525 2\n\n[&dna]\nCP100-11_Melitaea_diamina'
expected = 'nstates dna;\nxread\n1524 2\n\n[&dna]\nCP100-11_Melitaea_diamina'
result = dataset_creator.dataset_str
self.assertTrue(expected in result)

Expand Down

0 comments on commit f1fa4e9

Please sign in to comment.