Skip to content

Commit 3a8c649

Browse files
committed
Tweak some tests
1 parent 46fac6e commit 3a8c649

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/test_pipeline.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ class TestPipeline(unittest.TestCase):
66

77
def test_it_runs_a_pipeline_with_one_callable(self):
88
pipeline = Pipeline()
9-
result = pipeline.send('hello ') \
9+
result = pipeline.send('hello world ') \
1010
.through([str.strip]) \
1111
.then_return()
12-
self.assertEqual('hello', result)
12+
self.assertEqual('hello world', result)
1313

1414
def test_it_runs_a_pipeline_with_callables(self):
1515
pipeline = Pipeline()
@@ -93,20 +93,20 @@ def execute(self, passable, next_pipe):
9393
def test_it_runs_a_pipeline_by_sending_late(self):
9494
pipeline = Pipeline()
9595
pipeline.through([str.title, str.strip])
96-
result = pipeline.send('hello ') \
96+
result = pipeline.send('hello world ') \
9797
.then_return()
98-
self.assertEqual('Hello', result)
98+
self.assertEqual('Hello World', result)
9999

100100
def test_it_runs_a_pipeline_setup_via_pipe(self):
101101
pipeline = Pipeline()
102102
pipeline.pipe([str.title, str.strip])
103-
result = pipeline.send('hello ') \
103+
result = pipeline.send('hello world ') \
104104
.then_return()
105-
self.assertEqual('Hello', result)
105+
self.assertEqual('Hello World', result)
106106

107107
def test_it_bails_early(self):
108108
pipeline = Pipeline()
109-
result = pipeline.send('bork') \
109+
result = pipeline.send('hellow world ') \
110110
.through([
111111
lambda x, next_pipe: False,
112112
str.strip
@@ -116,14 +116,14 @@ def test_it_bails_early(self):
116116

117117
def test_it_bails_in_the_middle(self):
118118
pipeline = Pipeline()
119-
result = pipeline.send('bork ') \
119+
result = pipeline.send('hello world ') \
120120
.through([
121121
str.strip,
122122
lambda x, next_pipe: x,
123123
str.title
124124
]) \
125125
.then()
126-
self.assertEqual('bork', result)
126+
self.assertEqual('hello world', result)
127127

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

0 commit comments

Comments
 (0)