def METHOD_NAME(self):
    self.Body = self.Doc.addObject('PartDesign::Body','Body')
    self.Box = self.Doc.addObject('PartDesign::AdditiveBox','Box')
    self.Body.addObject(self.Box)
    self.Box.Length=10.00
    self.Box.Width=10.00
    self.Box.Height=10.00
    self.Doc.recompute()
    self.LinearPattern = self.Doc.addObject("PartDesign::LinearPattern","LinearPattern")
    self.LinearPattern.Originals = [self.Box]
    self.LinearPattern.Direction = (self.Doc.Y_Axis,[""])
    self.LinearPattern.Length = 90.0
    self.LinearPattern.Occurrences = 10
    self.Body.addObject(self.LinearPattern)
    self.Doc.recompute()
    self.assertAlmostEqual(self.LinearPattern.Shape.Volume, 1e4)