-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4c4c9c
commit bbf9948
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
from unittest import TestCase | ||
|
||
from taxonid.taxonid import get_taxon_id | ||
from taxonid.taxonid import get_taxonid | ||
|
||
|
||
class TestTaxonID(TestCase): | ||
|
||
def test_taxonid(self): | ||
self.assertEqual( | ||
511145, | ||
get_taxon_id('Escherichia coli str. K-12 substr. MG1655') | ||
get_taxonid('Escherichia coli str. K-12 substr. MG1655') | ||
) | ||
|
||
def test_taxonid_error(self): | ||
self.assertEqual( | ||
-1, | ||
get_taxon_id('foo') | ||
get_taxonid('foo') | ||
) |