def test_delete_target_remote_fail(self, monkeypatch: MonkeyPatch): class MockSSHShell2(MockSSHShell): def run(cmd): return (False, "") scput = SplitCopyPut() scput.sshshell = MockSSHShell2 scput.scs = MockSplitCopyShared() with raises(SystemExit): scput.delete_target_remote()
def test_delete_target_remote(self, monkeypatch: MonkeyPatch): class MockSSHShell2(MockSSHShell): def run(cmd): return (True, "") scput = SplitCopyPut() scput.sshshell = MockSSHShell2 result = scput.delete_target_remote() assert result == None