def setUp(self): self.effect = Effect() self.document = self.effect.parse("TestFiles/unit_test_svg_path.svg") root = self.effect.document.getroot() self.node = self.findTag(root, "g") self.node = self.findTag(self.node, "path") self.canvas = Canvas(0, 0) '''Fictional data used in methods such as pathlineto, pathcurveto, pathmoveto, patharcto. we made it so that the 5th parameters (600) is larger then the others, guaranteeing this way that the sqrt value is not a negative value in patharcto.''' self.data = [1.0, 2.0, 3.0, 4.0, 5.0, 600.0, 7.0] self.path = Path(None, self.node, self.canvas, None)