Skip to content

Commit

Permalink
added test for #361, indent problem in script
Browse files Browse the repository at this point in the history
  • Loading branch information
SherineAwad committed Sep 24, 2014
1 parent 1292fa7 commit 4e0b6c6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
@@ -1,3 +1,6 @@
2014-09-22 Sherine Awad <sherine.awad@gmail.com>
* scripts/normalize-by-median.py: catch expections generated by wrong indentation for 'total'

2014-09-10 Titus Brown <titus@idyll.org>

* sandbox/calc-median-distribution.py: catch exceptions generated by reads
Expand Down
Binary file added tests/test-data/normC20k20.kh
Binary file not shown.
10 changes: 10 additions & 0 deletions tests/test_scripts.py
Expand Up @@ -262,6 +262,16 @@ def test_filter_stoptags():
assert 'GGTTGACGGGGCTCAGGG' in seqs, seqs


def test_normalize_by_median_indent():
infile = utils.get_test_data('paired-mixed.fa.pe')
hashfile = utils.get_test_data('normC20k20.kh')
script = scriptpath('normalize-by-median.py')
args = ['--loadtable', hashfile, infile]
(status, out, err) = utils.runscript(script, args)
assert status == 0, (out, err)
print (out, err)


def test_normalize_by_median():
CUTOFF = '1'

Expand Down

0 comments on commit 4e0b6c6

Please sign in to comment.