Example #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))
Example #2
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))
Example #3
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))
Example #4
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))