Commit 64950af3 authored by Andreas Jung's avatar Andreas Jung

improved test for orphan testing

parent 451bc59c
......@@ -44,9 +44,9 @@ class BatchTests(TestCase):
def testLengthEqualsSizePlusOrphans(self):
'''Test limit case where batch length is equal to size + orphans'''
for bsize in (12, 14):
for bsize, length in ((12,11), (13,12), (14,13), (15,10)):
b = Batch(range(bsize), size=10, start=1, end=0, orphan=3, overlap=0)
assert b.length = b.sequence_length
assert length == b.length
def test_suite():
return makeSuite(BatchTests)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment