예제 #1
0
 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()
예제 #2
0
 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()
예제 #3
0
 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()
예제 #4
0
 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()