'Call :func:``upload_packages``, interacting with a fake AWS and yum
utilities.
:param FakeAWS aws: Fake AWS to interact with.
:param FakeYum yum: Fake yum utilities to interact with.
See :py:func:`upload_packages` for other parameter documentation.'

def upload_packages(self, aws, yum, scratch_directory, target_bucket, version, build_server, top_level):

    dispatchers = [aws.get_dispatcher(), yum.get_dispatcher(), base_dispatcher]
    sync_perform(ComposedDispatcher(dispatchers), upload_packages(scratch_directory=scratch_directory, target_bucket=target_bucket, version=version, build_server=build_server, top_level=top_level))
