def pathContainingDumpOf(testCase, *dumpables):
 fname = testCase.mktemp()
 with open(fname, 'wb') as f:
  for dumpable in dumpables:
   f.write(dumpable.dump(FILETYPE_PEM))
 return fname

def pathContainingDumpOf ( testCase , * dumpables ) : fname = testCase . mktemp ( ) with open ( fname , 'wb' ) as f : for dumpable in dumpables : f . write ( dumpable . dump ( FILETYPE_PEM ) ) return fname
create a temporary file to store some serializable-as-pem objects in .