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