def _getTempFileName():
 handle = tempfile.NamedTemporaryFile(prefix='test', suffix='.txt', dir='.')
 filename = handle.name
 handle.close()
 return filename

def _getTempFileName ( ) : handle = tempfile . NamedTemporaryFile ( prefix = 'test' , suffix = '.txt' , dir = '.' ) filename = handle . name handle . close ( ) return filename
creates unique file name that starts with test and ends with .