コード例 #1
0
 def test_suffix(self):
     from jicbioimage.core.image import _TemporaryFilePath
     with _TemporaryFilePath(suffix='.png') as tmp:
         self.assertTrue(tmp.fpath.endswith('.png'))
コード例 #2
0
 def test_fpath_cleanup(self):
     from jicbioimage.core.image import _TemporaryFilePath
     with _TemporaryFilePath(suffix='.png') as tmp:
         pass
     self.assertFalse(os.path.isfile(tmp.fpath))
コード例 #3
0
 def test_fpath_creation(self):
     from jicbioimage.core.image import _TemporaryFilePath
     with _TemporaryFilePath(suffix='.png') as tmp:
         self.assertTrue(os.path.isfile(tmp.fpath))
コード例 #4
0
 def test_suffix(self):
     from jicbioimage.core.image import _TemporaryFilePath
     with _TemporaryFilePath(suffix='.png') as tmp:
         self.assertTrue(tmp.fpath.endswith('.png'))
コード例 #5
0
 def test_fpath_cleanup(self):
     from jicbioimage.core.image import _TemporaryFilePath
     with _TemporaryFilePath(suffix='.png') as tmp:
         pass
     self.assertFalse(os.path.isfile(tmp.fpath))
コード例 #6
0
 def test_fpath_creation(self):
     from jicbioimage.core.image import _TemporaryFilePath
     with _TemporaryFilePath(suffix='.png') as tmp:
         self.assertTrue(os.path.isfile(tmp.fpath))