示例#1
0
 def check_default(self):
     " default behavior returns tempdir"
     # this'll fail if the temp directory isn't writable.
     d = build_tools.configure_temp_dir()
     assert(d == tempfile.gettempdir())
     assert(is_writable(d))
示例#2
0
 def test_default(self):
     # default behavior returns tempdir
     # Note: this'll fail if the temp directory isn't writable.
     d = build_tools.configure_temp_dir()
     assert_(d == tempfile.gettempdir())
     assert_(is_writable(d))