Exemplo n.º 1
0
 def __init__(self, gridspec_engine=gridspecEngine()):
     self.context = {}
     self.subplots = {}
     self.context[xBounds] = [0., 0.]
     self.context[yBounds] = [0., 0.]
     self._gridspec_engine = gridspec_engine
     self._gridspec = None
Exemplo n.º 2
0
 def test_returnType(self):
     gridspec = GridSpec(1,1)
     self.engine = gridspecEngine()
     result = self.engine.getGridSpec(1)
     self.assertEqual(type(result),type(gridspec))
Exemplo n.º 3
0
 def test_noMax(self):
     self.engine = gridspecEngine()
     result = self.engine.getGridSpec(100)
     self.assertNotEqual(result, None)
Exemplo n.º 4
0
 def test_overMax(self):
     self.engine = gridspecEngine(max_plot=10)
     result = self.engine.getGridSpec(100)
     self.assertEqual(result, None)
Exemplo n.º 5
0
 def test_underMax(self):
     self.engine = gridspecEngine(max_plot=10)
     result = self.engine.getGridSpec(8)
     self.assertNotEquals(result, None)