Exemplo n.º 1
0
 def test_can_submit(self) -> None:
     """Test can_submit."""
     fileinfo = FileInfo(src=self.filename,
                         dest=None,
                         operation_name="delete",
                         src_type="local")
     assert self.transfer_request_submitter.can_submit(fileinfo)
     fileinfo.operation_name = "foo"
     assert not self.transfer_request_submitter.can_submit(fileinfo)
Exemplo n.º 2
0
 def test_can_submit(self) -> None:
     """Test can_submit."""
     fileinfo = FileInfo(
         src=self.filename,
         dest=self.bucket + "/" + self.key,
         operation_name="upload",
     )
     assert self.transfer_request_submitter.can_submit(fileinfo)
     fileinfo.operation_name = "foo"
     assert not self.transfer_request_submitter.can_submit(fileinfo)
Exemplo n.º 3
0
 def test_can_submit(self) -> None:
     """Test can_submit."""
     fileinfo = FileInfo(
         src=self.bucket + "/" + self.key,
         dest=None,
         operation_name="delete",
         src_type="s3",
     )
     assert self.transfer_request_submitter.can_submit(fileinfo)
     fileinfo.operation_name = "foo"
     assert not self.transfer_request_submitter.can_submit(fileinfo)