def testReplaceUrl_nothing(self):
     payload = {"url": "https://localhost:12345/"}
     client_replay._ReplaceUrl(payload, None)
     self.assertEqual(payload, {"url": "https://localhost:12345/"})
 def testReplaceUrl_nothing(self):
   payload = {"url": "https://localhost:12345/"}
   client_replay._ReplaceUrl(payload, None)
   self.assertEqual(payload, {"url": "https://localhost:12345/"})
 def testReplaceUrl_simple(self):
     base_url = "https://base.url.test.com:0000"
     payload = {"url": "https://localhost:12345/"}
     client_replay._ReplaceUrl(payload, base_url)
     self.assertEqual(payload, {"url": "https://base.url.test.com:0000/"})
 def testReplaceUrl_simple(self):
   base_url = "https://base.url.test.com:0000"
   payload = {"url": "https://localhost:12345/"}
   client_replay._ReplaceUrl(payload, base_url)
   self.assertEqual(payload, {"url": "https://base.url.test.com:0000/"})