def test_fix_up_method_description_insert(self):
   result = _fix_up_method_description(self.zoo_insert_method_desc,
                                       self.zoo_root_desc)
   path_url = 'animals'
   http_method = 'POST'
   method_id = 'zoo.animals.insert'
   accept = ['image/png']
   max_size = 1024
   media_path_url = 'https://www.googleapis.com/upload/zoo/v1/animals'
   self.assertEqual(result, (path_url, http_method, method_id, accept,
                             max_size, media_path_url))
示例#2
0
 def test_fix_up_method_description_insert(self):
     result = _fix_up_method_description(self.zoo_insert_method_desc,
                                         self.zoo_root_desc)
     path_url = 'animals'
     http_method = 'POST'
     method_id = 'zoo.animals.insert'
     accept = ['image/png']
     max_size = 1024
     media_path_url = 'https://www.googleapis.com/upload/zoo/v1/animals'
     self.assertEqual(result, (path_url, http_method, method_id, accept,
                               max_size, media_path_url))
 def test_fix_up_method_description_get(self):
   result = _fix_up_method_description(self.zoo_get_method_desc,
                                       self.zoo_root_desc)
   path_url = 'query'
   http_method = 'GET'
   method_id = 'bigquery.query'
   accept = []
   max_size = 0
   media_path_url = None
   self.assertEqual(result, (path_url, http_method, method_id, accept,
                             max_size, media_path_url))
示例#4
0
 def test_fix_up_method_description_get(self):
     result = _fix_up_method_description(self.zoo_get_method_desc,
                                         self.zoo_root_desc)
     path_url = 'query'
     http_method = 'GET'
     method_id = 'bigquery.query'
     accept = []
     max_size = 0
     media_path_url = None
     self.assertEqual(result, (path_url, http_method, method_id, accept,
                               max_size, media_path_url))