@@ -2671,63 +2671,63 @@ def test_universe_env_var_configured_with_client_options_universe(self):
2671
2671
)
2672
2672
2673
2673
assert tasks ._universe_domain == fake_universe
2674
-
2675
- def test_client_options_universe_with_older_version_of_api_core (self ):
2676
- fake_universe = "foo.com"
2677
- credentials = mock .Mock (spec = google .auth .credentials .Credentials )
2678
- credentials .universe_domain = fake_universe
2679
- discovery = read_datafile ("tasks.json" )
2680
- with self .assertRaises (APICoreVersionError ):
2681
- tasks = build_from_document (
2682
- discovery ,
2683
- credentials = credentials ,
2684
- client_options = google .api_core .client_options .ClientOptions (
2685
- universe_domain = fake_universe
2686
- ),
2687
- )
2674
+ else :
2675
+ def test_client_options_universe_with_older_version_of_api_core (self ):
2676
+ fake_universe = "foo.com"
2677
+ credentials = mock .Mock (spec = google .auth .credentials .Credentials )
2678
+ credentials .universe_domain = fake_universe
2679
+ discovery = read_datafile ("tasks.json" )
2680
+ with self .assertRaises (APICoreVersionError ):
2681
+ tasks = build_from_document (
2682
+ discovery ,
2683
+ credentials = credentials ,
2684
+ client_options = google .api_core .client_options .ClientOptions (
2685
+ universe_domain = fake_universe
2686
+ ),
2687
+ )
2688
2688
2689
2689
2690
- def test_credentials_universe_with_older_version_of_api_core (self ):
2691
- fake_universe = "foo.com"
2692
- credentials = mock .Mock (spec = google .auth .credentials .Credentials )
2693
- credentials .universe_domain = fake_universe
2694
- discovery = read_datafile ("tasks.json" )
2695
- with self .assertRaises (APICoreVersionError ):
2690
+ def test_credentials_universe_with_older_version_of_api_core (self ):
2691
+ fake_universe = "foo.com"
2692
+ credentials = mock .Mock (spec = google .auth .credentials .Credentials )
2693
+ credentials .universe_domain = fake_universe
2694
+ discovery = read_datafile ("tasks.json" )
2695
+ with self .assertRaises (APICoreVersionError ):
2696
+ tasks = build_from_document (
2697
+ discovery ,
2698
+ credentials = credentials ,
2699
+ )
2700
+
2701
+ def test_credentials_default_universe_with_older_version_of_api_core (self ):
2702
+ credentials = mock .Mock (spec = google .auth .credentials .Credentials )
2703
+ credentials .universe_domain = "googleapis.com"
2704
+ discovery = read_datafile ("tasks.json" )
2696
2705
tasks = build_from_document (
2697
2706
discovery ,
2698
2707
credentials = credentials ,
2699
2708
)
2700
-
2701
- def test_credentials_default_universe_with_older_version_of_api_core (self ):
2702
- credentials = mock .Mock (spec = google .auth .credentials .Credentials )
2703
- credentials .universe_domain = "googleapis.com"
2704
- discovery = read_datafile ("tasks.json" )
2705
- tasks = build_from_document (
2706
- discovery ,
2707
- credentials = credentials ,
2708
- )
2709
-
2710
- def test_http_credentials_universe_with_older_version_of_api_core (self ):
2711
- fake_universe = "foo.com"
2712
- http = google_auth_httplib2 .AuthorizedHttp (
2713
- credentials = mock .Mock (universe_domain = fake_universe ), http = build_http ()
2714
- )
2715
- discovery = read_datafile ("tasks.json" )
2716
- with self .assertRaises (APICoreVersionError ):
2709
+
2710
+ def test_http_credentials_universe_with_older_version_of_api_core (self ):
2711
+ fake_universe = "foo.com"
2712
+ http = google_auth_httplib2 .AuthorizedHttp (
2713
+ credentials = mock .Mock (universe_domain = fake_universe ), http = build_http ()
2714
+ )
2715
+ discovery = read_datafile ("tasks.json" )
2716
+ with self .assertRaises (APICoreVersionError ):
2717
+ tasks = build_from_document (
2718
+ discovery ,
2719
+ http = http ,
2720
+ )
2721
+
2722
+ def test_http_credentials_default_universe_with_older_version_of_api_core (self ):
2723
+ http = google_auth_httplib2 .AuthorizedHttp (
2724
+ credentials = mock .Mock (universe_domain = "googleapis.com" ), http = build_http ()
2725
+ )
2726
+ discovery = read_datafile ("tasks.json" )
2717
2727
tasks = build_from_document (
2718
2728
discovery ,
2719
2729
http = http ,
2720
2730
)
2721
-
2722
- def test_http_credentials_default_universe_with_older_version_of_api_core (self ):
2723
- http = google_auth_httplib2 .AuthorizedHttp (
2724
- credentials = mock .Mock (universe_domain = "googleapis.com" ), http = build_http ()
2725
- )
2726
- discovery = read_datafile ("tasks.json" )
2727
- tasks = build_from_document (
2728
- discovery ,
2729
- http = http ,
2730
- )
2731
2731
2732
2732
2733
2733
if __name__ == "__main__" :
0 commit comments