def METHOD_NAME (self, name: str, write: str, query: str, read: str = "", expect = True):
    # register test
    self.tests = self.tests + 1
    # send write/read
    rp.write(write)
    value = rp.query(query)
    # check read response
    if (value != read):
        print ("Test \"" + name + "\" value ERROR:")
        print ("    expected: " + read)
        print ("    response: " + value)
        self.error = self.error + 1
    # check SCPI error status
    self.check_errors(name)