

@patch('sys.stdout', new_callable=StringIO)
@patch('sys.stderr', new_callable=StringIO)
def test_upload_package_raw(stderr, stdout):
    with HTTMock(upload_packages_mock):
        tool = packages.PackagesTool()
        server = Server('localhost')
        status = tool.execute(server, ['packages', 'upload', '--raw', 'tests/test_data/mock_package.zip'])
        eq_(0, status)
        eq_('', server.getvalue())
        eq_(True, (len(stdout.getvalue()) > 0))

dataset/ETHPy150Open bjorns/aem-cmd/tests/tools/test_packages.py test_upload_package_raw/VarMisuse@85/127 `stderr`->`server`