def test_response_single_value_write_request(sock, function, value):
    """ Validate responde of succesful Read Single Coil and Read Single
    Register request.
    """
    slave_id, starting_address, value = (1, 0, value)
    req_adu = function(slave_id, starting_address, value)

    assert tcp.send_message(req_adu, sock) == value