def setUp(self): self.period = PeriodFactory.create()
def setUp(self): self.dm = DowntimeMiddleware() self.request = Mock() self.request.session = {} self.period = PeriodFactory.create()