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 8import unittest 9 10from pylib.base import output_manager 11from pylib.base import output_manager_test_case 12from pylib.output import noop_output_manager 13 14 15class 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 26if __name__ == '__main__': 27 unittest.main() 28