def test_givenRssWithVodcastsWhenDownloadingThenOnlyNewFilesWillBeDownloaded(self):
        entries = self.rss_feed.entries
        vodcast = parse_video_item(entries[0])
        
        vodcast_downloader = VodcastDownloader()

        self.assertTrue(vodcast_downloader.should_be_downloaded(vodcast, as_local_datetime(datetime(2010, 10, 25, 11, 53, 49))), vodcast.updated)
        self.assertFalse(vodcast_downloader.should_be_downloaded(vodcast, as_local_datetime(datetime(2010, 10, 27, 11, 53, 49))), vodcast.updated)
    def test_reference_data_in_local_time(self):
        entries = self.rss_feed.entries
        vodcast = parse_video_item(entries[0])
        
        vodcast_downloader = VodcastDownloader()

        self.assertEqual(vodcast.updated, datetime(2010, 10, 26, 9, 53, 49))
        berlin = pytz.timezone("Europe/Berlin")
        self.assertTrue(vodcast_downloader.should_be_downloaded(vodcast, berlin.localize(datetime(2010, 10, 26, 10, 53, 49))), vodcast.updated)