Changeset 129 for branches/mk/tests/functional/test_options.py
- Timestamp:
- 08/04/06 08:40:20 (6 years ago)
- Files:
-
- branches/mk/tests/functional/test_options.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/mk/tests/functional/test_options.py
r94 r129 1 1 2 2 import os 3 import tempfile 3 4 4 5 from _helper_cheesecake import FunctionalTest, read_file_contents, NOSE_PATH, PACKAGE_PATH … … 87 88 # Make sure that --quiet generates less information than default operation. 88 89 assert len(quiet) < len(normal) 90 91 def test_keep_log(self): 92 logfile = tempfile.mktemp(prefix='log') 93 self._run_cheesecake('--path %s --logfile %s --keep-log' % (NOSE_PATH, logfile)) 94 95 self._assert_success() 96 97 # Make sure that log file was left. 98 assert os.path.exists(logfile) 99 100 # Delete the logfile now. 101 os.unlink(logfile)
