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
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
def test_returnType(self): gridspec = GridSpec(1, 1) self.engine = gridspecEngine() result = self.engine.getGridSpec(1) self.assertEquals(type(result), type(gridspec))
def test_overMax(self): self.engine = gridspecEngine(max_plot=10) result = self.engine.getGridSpec(100) self.assertEquals(result, None)
def test_noMax(self): self.engine = gridspecEngine() result = self.engine.getGridSpec(100) self.assertNotEquals(result, None)