moo.core.tests.test_rate_limit

Tests for the per-account broadcast flood limit (spec 200, item F).

Functions

test_broadcast_allowed_counts_within_window(...)

test_broadcast_disabled_never_throttles(settings)

test_flood_to_others_is_dropped(settings, ...)

Broadcast lines beyond the budget are dropped (the $spew backstop).

test_own_output_is_never_charged(settings, ...)

A player's own output (recipient == initiator) is exempt — verbosity is fine.

test_sys_knob_overrides_setting(settings, ...)