def test_flushes_collected_metrics(self, metrics_store):
        now = 17
        agg = DefaultAggregator(metrics_store)
        agg.add_metrics([KeyValue("k", 1, now)])
        agg.add_metrics([KeyValue("k", 2, now)])
        agg.flush()

        assert [("kv.k", 1, now), ("kv.k", 2, now)] == metrics_store.data
:rtype: lxml.etree.Element
dataset/ETHPy150Open kiip/statsite/tests/unit/test_aggregator.py/TestDefaultAggregator.test_flushes_collected_metrics--crossover with--dataset/ETHPy150Open Blazemeter/taurus/bzt/jmx.py/JMX._get_cookie_mgr