def test_set_aggregator(self, aggregator):
        coll    = Collector(aggregator)
        new_agg = object()

        assert aggregator is coll.aggregator
        coll.set_aggregator(new_agg)
        assert new_agg is coll.aggregator
Tests that setting an aggregator properly works.
dataset/ETHPy150Open kiip/statsite/tests/unit/test_collector.py/TestCollector.test_set_aggregator