tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

output_manager_test_case.py (447B)


      1 # Copyright 2017 The Chromium Authors
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 
      6 import os.path
      7 import unittest
      8 
      9 
     10 class OutputManagerTestCase(unittest.TestCase):
     11 
     12  def assertUsableTempFile(self, archived_tempfile):
     13    self.assertTrue(bool(archived_tempfile.name))
     14    self.assertTrue(os.path.exists(archived_tempfile.name))
     15    self.assertTrue(os.path.isfile(archived_tempfile.name))