Skip to content

Commit

Permalink
added tests to test stream
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam Childs committed Sep 22, 2016
1 parent 8f308c4 commit 8df6c86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_stream/test_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ def test_run(self):
outs = ConnectionSet([output])
input.entities.extend([1, 2, 3, 4, 5, 6, 7, 8, 9, 0])

stream.run(ins, outs)
self.assertTrue(stream.run(ins, outs))
self.assertEqual([2, 4, 6, 8, 10], list(output.entities))
stream.run(ins, outs)
self.assertTrue(stream.run(ins, outs))
self.assertEqual([2, 4, 6, 8, 10, 12], list(output.entities))
output.entities.clear()
stream.run(ins, outs)
self.assertFalse(stream.run(ins, outs))
self.assertEqual([14, 16, 18, 0], list(output.entities))


Expand Down

0 comments on commit 8df6c86

Please sign in to comment.