'Trailing newlines shouldn\'t cause last line to be dropped.'

@mock_streams('stdout')
@server()
def test_trailing_newline_line_drop(self):

    cmd = 'ls    /'
    output_string = RESPONSES[cmd]
    prefix = ('[%s]    out:    ' % env.host_string)
    expected = (prefix + ('\n' + prefix).join(output_string.split('\n')))
    with settings(show('everything'), hide('running')):
        result = run(cmd)
        eq_(expected, sys.stdout.getvalue())
        eq_(output_string, result)
