'If a file object (StringIO) has a name attribute, use that in output'

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

    file_obj = StringIO(u'test    data')
    file_obj.name = 'Test    StringIO    Object'
    put(file_obj, '/')
    assert re.search(file_obj.name, sys.stdout.getvalue())
