Skip to content

Commit

Permalink
Gitignore and test_row
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre-Tan committed Aug 1, 2017
1 parent 996e998 commit 90ea915
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
EmMAIL.egg-info/

__pycache__/

build/
6 changes: 3 additions & 3 deletions emmail/tests/test_Row_class.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import unittest
import BlastResultObj
from emmail.objects.Row import Row

string = "SP3LAU\tEMM89.0\t100\t180\t0\t0\t737626\t737805\t1\t180\t1.93e-89\t333\t180"
row = BlastResultObj.Row(string)
row = Row(string)

class TestRowMethods(unittest.TestCase):

Expand All @@ -16,7 +16,7 @@ def test_gap(self):
self.assertTrue(row.gap_k(2))

def test_filterMe(self):
self.assertIs(row.filterMe(), string)
self.assertEqual(repr(row.filterMe(mismatch=4, align_diff=5, gap=2)), string)

if __name__ == '__main__':
unittest.main()

0 comments on commit 90ea915

Please sign in to comment.