MCPcopy Create free account
hub / github.com/apache/pig / test__multiline_record

Method test__multiline_record

test/python/streaming/test_controller.py:287–299  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

285
286class TestReadInput( unittest.TestCase ):
287 def test__multiline_record(self):
288 cont = controller.PythonStreamingController()
289 inputio = StringIO.StringIO()
290 inputio.write('12\n')
291 inputio.write('34\n')
292 inputio.write('5|_\n')
293 inputio.seek(0)
294
295 cont.input_stream = inputio
296 cont.output_stream = sys.stdout
297 out = cont.get_next_input()
298
299 self.assertEquals('12\n34\n5', out)
300
301 def test__complexmultiline_record(self):
302 cont = controller.PythonStreamingController()

Callers

nothing calls this directly

Calls 4

get_next_inputMethod · 0.95
writeMethod · 0.45
seekMethod · 0.45
assertEqualsMethod · 0.45

Tested by

no test coverage detected