@@ -101,7 +101,9 @@ def test_get(self):
101101
102102 def test_get_fields_space (self ):
103103 self .client .get .return_value = self .mock_response (
104- "/v3/service_instances/service_instance_id?fields[space]=guid,name,relationships.organization&fields[space.organization]=guid,name" ,
104+ "/v3/service_instances/service_instance_id"
105+ "?fields[space]=guid,name,relationships.organization"
106+ "&fields[space.organization]=guid,name" ,
105107 HTTPStatus .OK ,
106108 None ,
107109 "v3" ,
@@ -111,15 +113,17 @@ def test_get_fields_space(self):
111113 fields = {
112114 "space" : ["guid,name,relationships.organization" ],
113115 "space.organization" : ["guid" , "name" ],
114- }
116+ }
115117 space = self .client .v3 .service_instances .get ("service_instance_id" , fields = fields ).space ()
116118 self .client .get .assert_called_with (self .client .get .return_value .url )
117119 self .assertEqual ("my_space" , space ["name" ])
118120 self .assertIsInstance (space , Entity )
119121
120122 def test_list_fields_space_and_org (self ):
121123 self .client .get .return_value = self .mock_response (
122- "/v3/service_instances?fields[space]=guid,name,relationships.organization&fields[space.organization]=guid,name" ,
124+ "/v3/service_instances"
125+ "?fields[space]=guid,name,relationships.organization"
126+ "&fields[space.organization]=guid,name" ,
123127 HTTPStatus .OK ,
124128 None ,
125129 "v3" ,
@@ -128,8 +132,8 @@ def test_list_fields_space_and_org(self):
128132 )
129133 fields = {
130134 "space" : ["guid,name,relationships.organization" ],
131- "space.organization" : ["guid" ,"name" ]
132- }
135+ "space.organization" : ["guid" , "name" ]
136+ }
133137 all_spaces = [app .space () for app in self .client .v3 .service_instances .list (fields = fields )]
134138 self .client .get .assert_called_with (self .client .get .return_value .url )
135139 self .assertEqual (2 , len (all_spaces ))
0 commit comments