def setUp(self): name = "test" self.subplot = mock.MagicMock() self.context = subplotContext(name, self.subplot)
def addSubplot(self, name, subplot): self.subplots[name] = subplotContext(name, subplot)