def testTempFilenameDir(self):
    filename = self.tempfile._TempFilename(dir='/dir')
    self.assertTrue(filename.startswith('/dir/tmp'))
    self.assertLess(len('/dir/tmpX'), len(filename))
test tempfile._TempFilename(dir=).
dataset/ETHPy150Open jmcgeheeiv/pyfakefs/fake_tempfile_test.py/FakeTempfileModuleTest.testTempFilenameDir