Пример #1
0
 def test_is_local_folder(self):
     with self.make_temp_dir() as filename:
         self.assertTrue(is_local_folder(filename))
         self.assertFalse(is_local_file(filename))
Пример #2
0
 def test_is_local_file(self):
     with tempfile.NamedTemporaryFile() as handle:
         self.assertTrue(is_local_file(handle.name))
         self.assertFalse(is_local_folder(handle.name))