def test_tmp_dir_exists_in_env(script):
 script.assert_no_temp()
 assert (script.environ['TMPDIR'] == script.temp_path)
 assert isdir(script.temp_path)

def test_tmp_dir_exists_in_env ( script ) : script . assert_no_temp ( ) assert ( script . environ [ 'TMPDIR' ] == script . temp_path ) assert isdir ( script . temp_path )
test that $tmpdir == env .