def assertMetricEquals(self, expected_value, metric_name,<EOL>registry=REGISTRY, **labels):
value = self.getMetric(metric_name, registry=registry, **labels)<EOL>self.assertEqual(<EOL>expected_value, value, METRIC_EQUALS_ERR_EXPLANATION % (<EOL>metric_name, self.formatLabels(labels), value,<EOL>expected_value, metric_name,<EOL>self.formatVector(self.getMetricVector(metric_name))))<EOL>
Asserts that metric_name{**labels} == expected_value.