def setUp(self): super(Ereporter2Test, self).setUp() self.testbed.init_user_stub() self.mock(acl, 'get_ereporter2_recipients', lambda: ['foo@localhost']) self.mock(ui, '_get_end_time_for_email', lambda: 1383000000) self._now = datetime.datetime(2014, 6, 24, 20, 19, 42, 653775) self.mock_now(self._now, 0) ui.configure()
def setUp(self): super(Base, self).setUp() self.testbed.init_user_stub() self._now = datetime.datetime(2014, 6, 24, 20, 19, 42, 653775) self.mock_now(self._now, 0) ui.configure()