def test_counts(self):
        factory = DataFactory()
        factory.create_measure(tags=['tag1'])
        factory.create_measure(tags=['tag1', 'tag2'])

        tags = _lazy_load_measure_tags(self.path)
        self.assertEqual(tags['tag1']['count'], 2)
        self.assertEqual(tags['tag2']['count'], 1)
Beispiel #2
0
    def test_counts(self):
        factory = DataFactory()
        factory.create_measure(tags=["tag1"])
        factory.create_measure(tags=["tag1", "tag2"])

        tags = _lazy_load_measure_tags(self.path)
        self.assertEqual(tags["tag1"]["count"], 2)
        self.assertEqual(tags["tag2"]["count"], 1)