  def testBuildCpuUsageFilter(self):
    """Validates the query filter builder functionality"""
    # pylint: disable=protected-access
    instances_filter = gcp_mocks.FAKE_MONITORING._BuildUsageFilter(
        'compute.googleapis.com/instance/cpu/utilization',
        ['0000000000000000001', '0000000000000000002'])
    self.assertEqual(
        instances_filter, ('metric.type = "compute.googleapis.com/instance/'
        'cpu/utilization" AND (resource.label.instance_id = '
        '"0000000000000000001" OR resource.label.instance_id = '
        '"0000000000000000002")'))
Validates the query filter builder functionality
tests/providers/gcp/internal/test_monitoring.py