def setUp(self): TracRpcTestCase.setUp(self) password_mgr = urllib2.HTTPPasswordMgrWithDefaultRealm() handler = urllib2.HTTPBasicAuthHandler(password_mgr) password_mgr.add_password(realm=None, uri=rpc_testenv.url_auth, user='******', passwd='user') self.opener_user = urllib2.build_opener(handler)
def tearDown(self): TracRpcTestCase.tearDown(self)
def setUp(self): TracRpcTestCase.setUp(self) self.anon = xmlrpclib.ServerProxy(rpc_testenv.url_anon) self.user = xmlrpclib.ServerProxy(rpc_testenv.url_user) self.admin = xmlrpclib.ServerProxy(rpc_testenv.url_admin)
def setUp(self): TracRpcTestCase.setUp(self)