

def test_parse_metrics_succeeds(self):
    '\n        Tests that parsing metrics succeeds and returns an array\n        of proper metric objects.\n        '
    message = '\n'.join(['k:1|kv', 'j:27|ms'])
    results = Collector(None)._parse_metrics(results)
    assert isinstance(results[0], KeyValue)
    assert isinstance(results[1], Timer)

dataset/ETHPy150Open kiip/statsite/tests/unit/test_collector.py TestCollector.test_parse_metrics_succeeds/VarMisuse@34/89 `message`->`results`