<s> from __future__ import ( absolute_import , division , generators , nested_scopes , print_function , <EOL> unicode_literals , with_statement ) <EOL> from pants_test . pants_run_integration_test import PantsRunIntegrationTest <EOL> class PythonReplIntegrationTest ( PantsRunIntegrationTest ) : <EOL> def test_run_repl ( self ) : <EOL> command = [ '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ] <EOL> program = '<STR_LIT>' <EOL> pants_run = self . run_pants ( command = command , stdin_data = program ) <EOL> output_lines = pants_run . stdout_data . rstrip ( ) . split ( '<STR_LIT:\n>' ) <EOL> self . assertEquals ( len ( output_lines ) , <NUM_LIT:4> , <EOL> msg = '<STR_LIT>' . format ( '<STR_LIT:\n>' . join ( output_lines ) ) ) <EOL> self . assertEquals ( '<STR_LIT>' , output_lines [ - <NUM_LIT:2> ] ) </s>
