@@ -237,8 +237,10 @@ def test_file_copy(self, mock_open, mock_close, mock_ssh, mock_ft):
237237 mock_ft_instance .check_file_exists .side_effect = [False , True ]
238238 self .device .file_copy ("path/to/source_file" )
239239
240- mock_ft .assert_called_with (self .device .native_ssh , "path/to/source_file" , "source_file" , file_system = "flash:" )
241- mock_ft_instance .enable_scp .assert_any_call ()
240+ mock_ft .assert_called_with (
241+ self .device .native_ssh , "path/to/source_file" , "source_file" , file_system = "/mnt/flash"
242+ )
243+ # mock_ft_instance.enable_scp.assert_any_call()
242244 mock_ft_instance .establish_scp_conn .assert_any_call ()
243245 mock_ft_instance .transfer_file .assert_any_call ()
244246
@@ -255,8 +257,8 @@ def test_file_copy_different_dest(self, mock_open, mock_close, mock_ssh, mock_ft
255257 mock_ft_instance .check_file_exists .side_effect = [False , True ]
256258 self .device .file_copy ("source_file" , "dest_file" )
257259
258- mock_ft .assert_called_with (self .device .native_ssh , "source_file" , "dest_file" , file_system = "flash: " )
259- mock_ft_instance .enable_scp .assert_any_call ()
260+ mock_ft .assert_called_with (self .device .native_ssh , "source_file" , "dest_file" , file_system = "/mnt/ flash" )
261+ # mock_ft_instance.enable_scp.assert_any_call()
260262 mock_ft_instance .establish_scp_conn .assert_any_call ()
261263 mock_ft_instance .transfer_file .assert_any_call ()
262264
@@ -289,7 +291,7 @@ def test_set_boot_options(self):
289291 [{"result" : {"output" : "flash:" }}],
290292 [{"result" : {"output" : "new_image.swi" }}],
291293 [{"result" : {}}],
292- [{"result" : {"softwareImage" : "flash:new_image.swi" }}],
294+ [{"result" : {"softwareImage" : "flash:/ new_image.swi" }}],
293295 ]
294296 calls = [
295297 mock .call (["dir" ], encoding = "text" ),
0 commit comments