예제 #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
예제 #2
0
파일: http_store.py 프로젝트: wd15/sumatra
 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
예제 #3
0
 def test_encode_project_info(self):
     serialization.encode_project_info("foo", "description of foo")
예제 #4
0
 def test_encode_project_info(self):
     serialization.encode_project_info("foo", "description of foo")