def test_N_file_with_percent(self):
"""
verify that we can create a file with a '%' in the filename.
( it needs to be properly escaped by _log() )
"""
self.assertTrue( paramiko.util.get_logger("paramiko").handlers, "This unit test requires logging to be enabled" )
f = sftp.open(FOLDER + '/test%file', 'w')
try:
self.assertEqual(f.stat().st_size, 0)
finally:
f.close()
sftp.remove(FOLDER + '/test%file')
评论列表
文章目录