| Index: tests/breakpad_unittest.py
|
| diff --git a/tests/breakpad_unittest.py b/tests/breakpad_unittest.py
|
| index 4d59c0b854eaa5d97dca0c6e653c2d44e78f0c4b..1ea4950dcc776a663956bde04cb4b51b7d2e25cb 100755
|
| --- a/tests/breakpad_unittest.py
|
| +++ b/tests/breakpad_unittest.py
|
| @@ -23,20 +23,23 @@ class Breakpad(SuperMoxTestBase):
|
| self.mox.StubOutWithMock(breakpad.getpass, 'getuser')
|
| self.mox.StubOutWithMock(breakpad.urllib2, 'urlopen')
|
| breakpad._HOST_NAME = 'bozo'
|
| + self.assertEquals(False, breakpad.IS_ENABLED)
|
| + breakpad.IS_ENABLED = True
|
| self._old_sys_argv = breakpad.sys.argv
|
| breakpad.sys.argv = ['my_test']
|
| self._old_sys_version = breakpad.sys.version
|
| breakpad.sys.version = 'random python'
|
|
|
| def tearDown(self):
|
| + breakpad.IS_ENABLED = False
|
| breakpad.sys.version = self._old_sys_version
|
| breakpad.sys.argv = self._old_sys_argv
|
| super(Breakpad, self).tearDown()
|
|
|
| def testMembersChanged(self):
|
| members = [
|
| - 'CheckForException', 'DEFAULT_URL', 'FormatException', 'Register',
|
| - 'SendProfiling', 'SendStack',
|
| + 'CheckForException', 'DEFAULT_URL', 'FormatException', 'IS_ENABLED',
|
| + 'Register', 'SendProfiling', 'SendStack',
|
| 'atexit', 'getpass', 'os', 'post', 'socket', 'sys', 'time', 'traceback',
|
| 'urllib', 'urllib2',
|
| ]
|
|
|