@@ -17,6 +17,7 @@ def test_get_by_id(self, locations_client, location_response):
1717 assert location ._client is locations_client
1818 assert location .id == 1
1919 assert location .name == "fsn1"
20+ assert location .network_zone == "eu-central"
2021
2122 @pytest .mark .parametrize ("params" , [{'name' : "fsn1" , "page" : 1 , "per_page" : 10 }, {}])
2223 def test_get_list (self , locations_client , two_locations_response , params ):
@@ -35,10 +36,12 @@ def test_get_list(self, locations_client, two_locations_response, params):
3536 assert location1 ._client is locations_client
3637 assert location1 .id == 1
3738 assert location1 .name == "fsn1"
39+ assert location1 .network_zone == "eu-central"
3840
3941 assert location2 ._client is locations_client
4042 assert location2 .id == 2
4143 assert location2 .name == "nbg1"
44+ assert location2 .network_zone == "eu-central"
4245
4346 @pytest .mark .parametrize ("params" , [{'name' : "fsn1" }, {}])
4447 def test_get_all (self , locations_client , two_locations_response , params ):
@@ -57,10 +60,12 @@ def test_get_all(self, locations_client, two_locations_response, params):
5760 assert location1 ._client is locations_client
5861 assert location1 .id == 1
5962 assert location1 .name == "fsn1"
63+ assert location1 .network_zone == "eu-central"
6064
6165 assert location2 ._client is locations_client
6266 assert location2 .id == 2
6367 assert location2 .name == "nbg1"
68+ assert location2 .network_zone == "eu-central"
6469
6570 def test_get_by_name (self , locations_client , one_locations_response ):
6671 locations_client ._client .request .return_value = one_locations_response
@@ -73,3 +78,4 @@ def test_get_by_name(self, locations_client, one_locations_response):
7378 assert location ._client is locations_client
7479 assert location .id == 1
7580 assert location .name == "fsn1"
81+ assert location .network_zone == "eu-central"
0 commit comments