| Index: appengine/findit/common/test/repo_util_test.py
|
| diff --git a/appengine/findit/common/test/repo_util_test.py b/appengine/findit/common/test/repo_util_test.py
|
| index 48c1e22d2db96aaf16ff15749d5640166be7bf4f..154e74f3e4d9d9b305810b950ac068ad5e2ba0d3 100644
|
| --- a/appengine/findit/common/test/repo_util_test.py
|
| +++ b/appengine/findit/common/test/repo_util_test.py
|
| @@ -10,6 +10,7 @@ import textwrap
|
| import urllib2
|
|
|
| from common import repo_util
|
| +from common.cache_decorator import LocalCacher
|
|
|
|
|
| class RepoUtilTest(testing.AppengineTestCase):
|
| @@ -141,7 +142,7 @@ class RepoUtilTest(testing.AppengineTestCase):
|
| self.command = command
|
|
|
| def communicate(self, *_):
|
| - return self.command, 'dummy'
|
| + return self.command, 'error'
|
|
|
| @property
|
| def returncode(self):
|
| @@ -152,8 +153,9 @@ class RepoUtilTest(testing.AppengineTestCase):
|
|
|
| def _MockPopen(command, **_):
|
| return _MockProcess(command)
|
| -
|
| self.mock(subprocess, 'Popen', _MockPopen)
|
| + self.mock(LocalCacher, 'Get', lambda *_: None)
|
| +
|
| output = repo_util.GetCommandOutput('command')
|
| self.assertEqual(output, 'command')
|
|
|
|
|