def testCtorFail_RootPos(self): """TreePlotTransform() constructor rootPos out of range.""" self.assertRaises( TreePlotTransform.ExceptionTreePlotTransformRangeCtor, TreePlotTransform.TreePlotTransform, Coord.zeroBaseUnitsBox(), rootPos='whatever')
def testCtorFail_SweepDir(self): """TreePlotTransform() constructor sweepDir out of range.""" self.assertRaises( TreePlotTransform.ExceptionTreePlotTransformRangeCtor, TreePlotTransform.TreePlotTransform, Coord.zeroBaseUnitsBox(), sweepDir='whatever')
def testCtorMt(self): """TreePlotTransform() constructor defaults.""" myO = TreePlotTransform.TreePlotTransform(Coord.zeroBaseUnitsBox()) self.assertEqual(myO.rootPos, 'top') self.assertEqual(myO.sweepDir, '-')