@@ -28,7 +28,7 @@ def setUp(self):
2828 self .deserialize = self .api_client .deserialize
2929
3030 def test_enum_test (self ):
31- """ deserialize Dict [str, EnumTest] """
31+ """ deserialize dict [str, EnumTest] """
3232 data = {
3333 'enum_test' : {
3434 "enum_string" : "UPPER" ,
@@ -40,7 +40,7 @@ def test_enum_test(self):
4040 }
4141 response = json .dumps (data )
4242
43- deserialized = self .deserialize (response , 'Dict [str, EnumTest]' , 'application/json' )
43+ deserialized = self .deserialize (response , 'dict [str, EnumTest]' , 'application/json' )
4444 self .assertTrue (isinstance (deserialized , dict ))
4545 self .assertTrue (isinstance (deserialized ['enum_test' ], petstore_api .EnumTest ))
4646 self .assertEqual (deserialized ['enum_test' ],
@@ -51,7 +51,7 @@ def test_enum_test(self):
5151 outerEnum = petstore_api .OuterEnum .PLACED ))
5252
5353 def test_deserialize_dict_str_pet (self ):
54- """ deserialize Dict [str, Pet] """
54+ """ deserialize dict [str, Pet] """
5555 data = {
5656 'pet' : {
5757 "id" : 0 ,
@@ -74,13 +74,13 @@ def test_deserialize_dict_str_pet(self):
7474 }
7575 response = json .dumps (data )
7676
77- deserialized = self .deserialize (response , 'Dict [str, Pet]' , 'application/json' )
77+ deserialized = self .deserialize (response , 'dict [str, Pet]' , 'application/json' )
7878 self .assertTrue (isinstance (deserialized , dict ))
7979 self .assertTrue (isinstance (deserialized ['pet' ], petstore_api .Pet ))
8080
8181 @pytest .mark .skip (reason = "skipping for now as deserialization will be refactored" )
8282 def test_deserialize_dict_str_dog (self ):
83- """ deserialize Dict [str, Animal], use discriminator"""
83+ """ deserialize dict [str, Animal], use discriminator"""
8484 data = {
8585 'dog' : {
8686 "id" : 0 ,
@@ -91,19 +91,19 @@ def test_deserialize_dict_str_dog(self):
9191 }
9292 response = json .dumps (data )
9393
94- deserialized = self .deserialize (response , 'Dict [str, Animal]' , 'application/json' )
94+ deserialized = self .deserialize (response , 'dict [str, Animal]' , 'application/json' )
9595 self .assertTrue (isinstance (deserialized , dict ))
9696 self .assertTrue (isinstance (deserialized ['dog' ], petstore_api .Dog ))
9797
9898 @pytest .mark .skip (reason = "skipping for now as deserialization will be refactored" )
9999 def test_deserialize_dict_str_int (self ):
100- """ deserialize Dict [str, int] """
100+ """ deserialize dict [str, int] """
101101 data = {
102102 'integer' : 1
103103 }
104104 response = json .dumps (data )
105105
106- deserialized = self .deserialize (response , 'Dict [str, int]' , 'application/json' )
106+ deserialized = self .deserialize (response , 'dict [str, int]' , 'application/json' )
107107 self .assertTrue (isinstance (deserialized , dict ))
108108 self .assertTrue (isinstance (deserialized ['integer' ], int ))
109109
@@ -212,7 +212,7 @@ def test_deserialize_list_of_pet(self):
212212 }]
213213 response = json .dumps (data )
214214
215- deserialized = self .deserialize (response , "List [Pet]" , 'application/json' )
215+ deserialized = self .deserialize (response , "list [Pet]" , 'application/json' )
216216 self .assertTrue (isinstance (deserialized , list ))
217217 self .assertTrue (isinstance (deserialized [0 ], petstore_api .Pet ))
218218 self .assertEqual (deserialized [0 ].id , 0 )
@@ -221,15 +221,15 @@ def test_deserialize_list_of_pet(self):
221221 self .assertEqual (deserialized [1 ].name , "doggie1" )
222222
223223 def test_deserialize_nested_dict (self ):
224- """ deserialize Dict [str, Dict [str, int]] """
224+ """ deserialize dict [str, dict [str, int]] """
225225 data = {
226226 "foo" : {
227227 "bar" : 1
228228 }
229229 }
230230 response = json .dumps (data )
231231
232- deserialized = self .deserialize (response , "Dict [str, Dict [str, int]]" , 'application/json' )
232+ deserialized = self .deserialize (response , "dict [str, dict [str, int]]" , 'application/json' )
233233 self .assertTrue (isinstance (deserialized , dict ))
234234 self .assertTrue (isinstance (deserialized ["foo" ], dict ))
235235 self .assertTrue (isinstance (deserialized ["foo" ]["bar" ], int ))
@@ -239,7 +239,7 @@ def test_deserialize_nested_list(self):
239239 data = [["foo" ]]
240240 response = json .dumps (data )
241241
242- deserialized = self .deserialize (response , "List[List [str]]" , 'application/json' )
242+ deserialized = self .deserialize (response , "list[list [str]]" , 'application/json' )
243243 self .assertTrue (isinstance (deserialized , list ))
244244 self .assertTrue (isinstance (deserialized [0 ], list ))
245245 self .assertTrue (isinstance (deserialized [0 ][0 ], str ))
@@ -311,18 +311,18 @@ def test_deserialize_content_type(self):
311311
312312 response = json .dumps ({"a" : "a" })
313313
314- deserialized = self .deserialize (response , "Dict [str, str]" , 'application/json' )
314+ deserialized = self .deserialize (response , "dict [str, str]" , 'application/json' )
315315 self .assertTrue (isinstance (deserialized , dict ))
316316
317317
318- deserialized = self .deserialize (response , "Dict [str, str]" , 'application/vnd.api+json' )
318+ deserialized = self .deserialize (response , "dict [str, str]" , 'application/vnd.api+json' )
319319 self .assertTrue (isinstance (deserialized , dict ))
320320
321321
322- deserialized = self .deserialize (response , "Dict [str, str]" , 'application/json; charset=utf-8' )
322+ deserialized = self .deserialize (response , "dict [str, str]" , 'application/json; charset=utf-8' )
323323 self .assertTrue (isinstance (deserialized , dict ))
324324
325- deserialized = self .deserialize (response , "Dict [str, str]" , 'application/vnd.api+json; charset=utf-8' )
325+ deserialized = self .deserialize (response , "dict [str, str]" , 'application/vnd.api+json; charset=utf-8' )
326326 self .assertTrue (isinstance (deserialized , dict ))
327327
328328 deserialized = self .deserialize (response , "str" , 'text/plain' )
@@ -331,7 +331,7 @@ def test_deserialize_content_type(self):
331331 deserialized = self .deserialize (response , "str" , 'text/csv' )
332332 self .assertTrue (isinstance (deserialized , str ))
333333
334- deserialized = self .deserialize (response , "Dict [str, str]" , 'APPLICATION/JSON' )
334+ deserialized = self .deserialize (response , "dict [str, str]" , 'APPLICATION/JSON' )
335335 self .assertTrue (isinstance (deserialized , dict ))
336336
337337 with self .assertRaises (petstore_api .ApiException ) as cm :
@@ -341,8 +341,8 @@ def test_deserialize_content_type(self):
341341 deserialized = self .deserialize (response , "str" , 'text/n0t-exist!ng' )
342342
343343 with self .assertRaises (petstore_api .ApiException ) as cm :
344- deserialized = self .deserialize (response , "Dict [str, str]" , 'application/jsonnnnn' )
344+ deserialized = self .deserialize (response , "dict [str, str]" , 'application/jsonnnnn' )
345345
346346 with self .assertRaises (petstore_api .ApiException ) as cm :
347- deserialized = self .deserialize (response , "Dict [str, str]" , 'application/<+json' )
347+ deserialized = self .deserialize (response , "dict [str, str]" , 'application/<+json' )
348348
0 commit comments