MCPcopy Index your code
hub / github.com/prometheus/client_python / assertEqualMetrics

Method assertEqualMetrics

tests/test_parser.py:14–20  ·  view source on GitHub ↗
(self, first, second, msg=None)

Source from the content-addressed store, hash-verified

12
13class TestParse(unittest.TestCase):
14 def assertEqualMetrics(self, first, second, msg=None):
15 super().assertEqual(first, second, msg)
16
17 # Test that samples are actually named tuples of type Sample.
18 for a, b in zip(first, second):
19 for sa, sb in zip(a.samples, b.samples):
20 assert sa.name == sb.name
21
22 def test_simple_counter(self):
23 families = text_string_to_metric_families("""# TYPE a counter

Calls

no outgoing calls

Tested by

no test coverage detected