def METHOD_NAME(self, mock_request, mock_session):
    session = ncclient.transport.SSHSession(self.device_handler)
    obj = Lock(session, self.device_handler, raise_mode=RaiseMode.ALL)
    obj.request(target="running")
    node = new_ele("lock")
    sub_ele(sub_ele(node, "target"), "running")
    xml = ElementTree.tostring(node)
    call = mock_request.call_args_list[0][0][0]
    call = ElementTree.tostring(call)
    self.assertEqual(call, xml)