1. Olemis Lang
  2. bloodhound-rpc

Commits

Olemis Lang  committed 96f64ef

BH RPC : Correct URLs in JSON-RPC test cases

  • Participants
  • Parent commits 11391e4
  • Branches bloodhound_rpc

Comments (0)

Files changed (1)

File trunk/tracrpc/tests/json_rpc.py

View file
  • Ignore whitespace
     class JsonTestCase(TracRpcTestCase):
 
         def _anon_req(self, data):
-            req = urllib2.Request(self._testenv.url_anon,
+            req = urllib2.Request(self.url_anon,
                         headers={'Content-Type': 'application/json'})
             req.data = json.dumps(data)
             resp = urllib2.urlopen(req)
             password_mgr = urllib2.HTTPPasswordMgrWithDefaultRealm()
             handler = urllib2.HTTPBasicAuthHandler(password_mgr)
             password_mgr.add_password(realm=None,
-                          uri=self._testenv.url_auth,
+                          uri=self.url_auth,
                           user=user,
                           passwd=user)
-            req = urllib2.Request(self._testenv.url_auth,
+            req = urllib2.Request(self.url_auth,
                         headers={'Content-Type': 'application/json'})
             req.data = json.dumps(data)
             resp = urllib2.build_opener(handler).open(req)