def METHOD_NAME(self):
    p = self.Kind()
    p.set_relative(0.75)
    self.failUnlessEqual(p.get_relative(), 0.75)
    with visible(p) as p:
        self.failUnlessAlmostEqual(p.get_relative(), 0.75, 2)