예제 #1
0
 def test_formattedAirDate_When_previous_program_is_none_and_current_program_airs_two_or_more_days_out_Then_return_airdate(
         self):
     when(self.current).starttimeAsTime().thenReturn(self.tenDaysFromNow)
     airDate = self.urw.formattedAirDate(previous=None,
                                         current=self.current)
     log.debug('Air date: %s' % airDate)
     self.assertTrue(airDate and not airDate in ('Tomorrow', 'Today', ''))
     verifyZeroInteractions(self.translator)
 def test_should_not_call_inner_provider_on_state_changing_events(self):
     self.sut.start(None, None, None)
     self.sut.shutdown(None)
     verifyZeroInteractions(self.inner_provider)
예제 #3
0
 def test_formattedAirDate_When_previous_program_is_none_and_current_program_airs_two_or_more_days_out_Then_return_airdate(self):
     when(self.current).starttimeAsTime().thenReturn(self.tenDaysFromNow)
     airDate = self.urw.formattedAirDate(previous=None, current=self.current)
     log.debug('Air date: %s' % airDate)
     self.assertTrue(airDate and not airDate in ('Tomorrow', 'Today', ''))
     verifyZeroInteractions(self.translator)