Fix unittests since unittests don't actually send a request.
Change-Id: I1a75bfe698e8b83ddd248e748b512ec4b58d2d7f
BUG=
TEST=Ran them
Review URL: http://codereview.chromium.org/4087004
diff --git a/autoupdate_unittest.py b/autoupdate_unittest.py
index 6e0a376..faeb300 100755
--- a/autoupdate_unittest.py
+++ b/autoupdate_unittest.py
@@ -6,6 +6,7 @@
"""Unit tests for autoupdate.py."""
+import cherrypy
import mox
import os
import socket
@@ -47,6 +48,8 @@
self.url = 'http://%s/static/update.gz' % self.hostname
self.payload = 'My payload'
self.sha256 = 'SHA LA LA'
+ cherrypy.request.base = 'http://%s' % self.hostname
+
def _DummyAutoupdateConstructor(self):
"""Creates a dummy autoupdater. Used to avoid using constructor."""