@@ -263,7 +263,7 @@ def test_filter_by_group(self):
263263 client = self ._create_client ()
264264 query = self ._make_one (client , PROJECT , METRIC_TYPE )
265265 query = query .select_group (GROUP )
266- expected = ('metric.type = "{type}"' ' AND group.id = "{group}"' ).format (
266+ expected = ('metric.type = "{type}" AND group.id = "{group}"' ).format (
267267 type = METRIC_TYPE , group = GROUP
268268 )
269269 self .assertEqual (query .filter , expected )
@@ -285,8 +285,7 @@ def test_filter_by_resources(self):
285285 query = self ._make_one (client , PROJECT , METRIC_TYPE )
286286 query = query .select_resources (zone_prefix = ZONE_PREFIX )
287287 expected = (
288- 'metric.type = "{type}"'
289- ' AND resource.label.zone = starts_with("{prefix}")'
288+ 'metric.type = "{type}" AND resource.label.zone = starts_with("{prefix}")'
290289 ).format (type = METRIC_TYPE , prefix = ZONE_PREFIX )
291290 self .assertEqual (query .filter , expected )
292291
@@ -296,7 +295,7 @@ def test_filter_by_metrics(self):
296295 query = self ._make_one (client , PROJECT , METRIC_TYPE )
297296 query = query .select_metrics (instance_name = INSTANCE )
298297 expected = (
299- 'metric.type = "{type}"' ' AND metric.label.instance_name = "{instance}"'
298+ 'metric.type = "{type}" AND metric.label.instance_name = "{instance}"'
300299 ).format (type = METRIC_TYPE , instance = INSTANCE )
301300 self .assertEqual (query .filter , expected )
302301
@@ -562,7 +561,7 @@ def test_metric_label_response_code_greater_less(self):
562561 "metric" , response_code_greater = 500 , response_code_less = 600
563562 )
564563 expected = (
565- "metric.label.response_code < 600" " AND metric.label.response_code > 500"
564+ "metric.label.response_code < 600 AND metric.label.response_code > 500"
566565 )
567566 self .assertEqual (actual , expected )
568567
@@ -571,7 +570,7 @@ def test_metric_label_response_code_greater_less_equal(self):
571570 "metric" , response_code_greaterequal = 500 , response_code_lessequal = 600
572571 )
573572 expected = (
574- "metric.label.response_code <= 600" " AND metric.label.response_code >= 500"
573+ "metric.label.response_code <= 600 AND metric.label.response_code >= 500"
575574 )
576575 self .assertEqual (actual , expected )
577576
0 commit comments