Check that resource counting is consistent.
Usage
Source
capacity.CapacitySchedule.assert_resource_invariants()