  def testListAvailableMetricsForResource(self, mock_list_metrics):
    """Test that metrics are correctly listed."""
    mock_list_metrics.return_value = azure_mocks.MOCK_LIST_METRICS
    metrics = azure_mocks.FAKE_MONITORING.ListAvailableMetricsForResource(
        'fake-resource-id')
    self.assertEqual(1, len(metrics))
    self.assertIn('fake-metric', metrics)
Test that metrics are correctly listed.
tests/providers/azure/internal/test_monitoring.py