  def testGetMetricsForResource(self, mock_list_metrics_operations):
    """Test that metrics values are correctly retrieved."""
    mock_list_metrics_operations.return_value = azure_mocks.MOCK_METRIC_OPERATION
    metrics = azure_mocks.FAKE_MONITORING.GetMetricsForResource(
        'fake-resource-id', 'fake-metric')
    self.assertIn('fake-metric', metrics)
    self.assertEqual(1, len(metrics['fake-metric']))
    self.assertEqual('fake-value', metrics['fake-metric']['fake-time-stamp'])
Test that metrics values are correctly retrieved.
tests/providers/azure/internal/test_monitoring.py