def METHOD_NAME(self,p1,p2,msg):
    msgMore = "val1 = " + p1.toString() + " and val2 = " + p2.toString();
    for i in range(0,3):
        self.checkApproxEqual(p1.getVal(i),p2.getVal(i),msg+":"+msgMore);