Пример #1
0
 def test_ls(self, with_local_folders):
     local_storage.write(self._get_file_data(), local_storage.PERM,
                         self.temp_file_name)
     assert local_storage.ls(local_storage.PERM,
                             self.temp_file_name) is True
Пример #2
0
 def test_ls_file_not_found(self, with_local_folders):
     assert local_storage.ls(local_storage.PERM,
                             self.temp_file_name) is None
Пример #3
0
 def test_ls(self, with_local_folders, local_file):
     local_storage.write(local_file, local_storage.PERM,
                         self.temp_file_name,
                         config.DUMMY_VALUES['account'], "curl/7.61.1")
     assert local_storage.ls(local_storage.PERM,
                             self.temp_file_name) is True