def test_measure(self): measure = metrics.Measure() bound_measure = measure.bind({}) self.assertIsInstance(bound_measure, metrics.BoundMeasure)
def test_measure_record(self): measure = metrics.Measure() measure.record(1, {})
def test_measure_record(self): measure = metrics.Measure() label_set = metrics.LabelSet() measure.record(label_set, 1)
def test_measure(self): measure = metrics.Measure() label_set = metrics.LabelSet() handle = measure.get_handle(label_set) self.assertIsInstance(handle, metrics.MeasureHandle)
def test_measure_record(self): measure = metrics.Measure() measure.record(("value", ), 1)
def test_measure(self): measure = metrics.Measure() handle = measure.get_handle(("test", "test1")) self.assertIsInstance(handle, metrics.MeasureHandle)
def test_measure(self): measure = metrics.Measure() label_set = metrics.LabelSet() bound_measure = measure.bind(label_set) self.assertIsInstance(bound_measure, metrics.BoundMeasure)