(self)
| 12 | class LocalVersionTest(TestCase): |
| 13 | |
| 14 | def setUp(self): |
| 15 | # Run all unit tests with debug mode disabled. |
| 16 | is_debug_patch = mock.patch.object(version, |
| 17 | '_is_debug', |
| 18 | return_value=False) |
| 19 | self.addCleanup(is_debug_patch.stop) |
| 20 | is_debug_patch.start() |
| 21 | |
| 22 | def test_local_version_when_file_exists(self): |
| 23 | with tempfile.NamedTemporaryFile('w', |