def setUp(self): self.url = self.live_server_url + reverse('xmlrpc') # url is of the form http://localhost:PORT/PATH # strip the http and replace it with the username/passwd of a user. self.project = utils.create_project() self.user = utils.create_maintainer(self.project) self.url = ('http://%s:%s@' + self.url[7:]) % (self.user.username, self.user.username) self.rpc = xmlrpc_client.Server(self.url)
def setUp(self): defaults.project.save() defaults.patch_author_person.save() self.maintainer = TestUser(username='******') self.maintainer.add_to_maintainers(defaults.project) p = urlparse.urlparse(self.live_server_url) self.url = (p.scheme + '://' + self.maintainer.username + ':' + self.maintainer.password + '@' + p.netloc + p.path + reverse('patchwork.views.xmlrpc.xmlrpc')) self.rpc = xmlrpc_client.Server(self.url)
def setUp(self): self.url = self.live_server_url + reverse('xmlrpc') self.rpc = xmlrpc_client.Server(self.url)