def METHOD_NAME(current_actor_context):
    """
    Install NetworkManager-team if there's a team connection and also
    ensure NetworkManager-config-server is installed if NetworkManager
    was not there.
    """
    current_actor_context.feed(IfCfg(
        filename="/NM/ifcfg-team0",
        properties=(IfCfgProperty(name="TYPE", value="Team"),)
    ))
    current_actor_context.feed(INITSCRIPTS_INSTALLED)
    current_actor_context.run()
    assert not current_actor_context.consume(Report)
    assert len(current_actor_context.consume(RpmTransactionTasks)) == 1
    rpm_transaction = current_actor_context.consume(RpmTransactionTasks)[0]
    assert rpm_transaction.to_install == [
        "NetworkManager-team",
        "NetworkManager-config-server",
    ]