def test_set_aggregator(self, aggregator):
        """
        Tests that setting an aggregator properly works.
        """
        coll    = Collector(aggregator)
        new_agg = object()

        assert aggregator is coll.aggregator
        coll.set_aggregator(new_agg)
        assert new_agg is coll.aggregator
dataset/ETHPy150Open kiip/statsite/tests/unit/test_collector.py/TestCollector.test_set_aggregator/original