Ejemplo n.º 1
0
 def _put_project(self, project_name, long_name='', description=''):
     url = "%s%s/" % (self.server_url, project_name)
     data = serialization.encode_project_info(long_name, description)
     headers = {'Content-Type': 'application/vnd.sumatra.project-v%d+json' % API_VERSION}
     response, content = self.client.request(url, 'PUT', data,
                                             headers=headers)
     return response, content
Ejemplo n.º 2
0
 def _put_project(self, project_name, long_name='', description=''):
     url = "%s%s/" % (self.server_url, project_name)
     data = serialization.encode_project_info(long_name, description)
     headers = {'Content-Type': 'application/vnd.sumatra.project-v%d+json' % API_VERSION}
     response, content = self.client.request(url, 'PUT', data,
                                             headers=headers)
     return response, content
Ejemplo n.º 3
0
 def test_encode_project_info(self):
     serialization.encode_project_info("foo", "description of foo")
Ejemplo n.º 4
0
 def test_encode_project_info(self):
     serialization.encode_project_info("foo", "description of foo")