def test_seconds_to_midnight_with_other_offset(self, now_mock):
     now_mock.return_value = self.mock_now_return
     self.assertEquals(61, scheduling.seconds_to_midnight())
 def test_seconds_to_midnight_with_other_offset(self, now_mock):
     now_mock.return_value = self.mock_now_return
     self.assertEquals(61, scheduling.seconds_to_midnight())
 def test_seconds_to_midnight_with_default_offset(self, now_mock):
     now_mock.return_value = self.mock_now_return
     self.assertEquals(103,
                       scheduling.seconds_to_midnight(offset_seconds=42))
 def test_seconds_to_midnight_with_default_offset(self, now_mock):
     now_mock.return_value = self.mock_now_return
     self.assertEquals(103, scheduling.seconds_to_midnight(offset_seconds=42))