noop_output_manager_test.py (748B)
1 #! /usr/bin/env vpython3 2 # Copyright 2017 The Chromium Authors 3 # Use of this source code is governed by a BSD-style license that can be 4 # found in the LICENSE file. 5 6 # pylint: disable=protected-access 7 8 import unittest 9 10 from pylib.base import output_manager 11 from pylib.base import output_manager_test_case 12 from pylib.output import noop_output_manager 13 14 15 class NoopOutputManagerTest(output_manager_test_case.OutputManagerTestCase): 16 17 def setUp(self): 18 self._output_manager = noop_output_manager.NoopOutputManager() 19 20 def testUsableTempFile(self): 21 self.assertUsableTempFile( 22 self._output_manager._CreateArchivedFile( 23 'test_file', 'test_subdir', output_manager.Datatype.TEXT)) 24 25 26 if __name__ == '__main__': 27 unittest.main()