code: def step_impl(context):
      
      expected_lines = context.text.split('\n')
      assert len(expected_lines) == len(context.output)
      for expected, actual in zip(expected_lines, context.output):
          print('--\n\texpected: {}\n\tactual: {}'.format(expected, actual))
          assert expected == actual
docs: Compares text as written to the log output