Skip to content

Commit

Permalink
limiting the number of excursion in an iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
Melanie Ducoffe committed Jun 24, 2015
1 parent eb1e7bd commit 88ccff7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_schemes.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def test_concatenated_scheme():
sch = ConcatenatedScheme(schemes=[ConstantScheme(batch_size=10, times=5),
ConstantScheme(batch_size=20, times=3),
ConstantScheme(batch_size=30, times=1)])

assert (list(sch.get_request_iterator()) ==
([10] * 5) + ([20] * 3) + [30])

Expand Down

0 comments on commit 88ccff7

Please sign in to comment.