コード例 #1
0
ファイル: tests.py プロジェクト: citizennerd/councilmatic
    def returns_date_min_when_no_content_is_available(self):
        LegFile.objects.all().delete()
        updater = ContentFeedRecordUpdater()

        updater.update(self.record, self.library)

        assert_equal(self.record.last_updated, datetime.datetime.min)
コード例 #2
0
ファイル: tests.py プロジェクト: phxdata/mesa-councilmatic
    def returns_date_min_when_no_content_is_available(self):
        LegFile.objects.all().delete()
        updater = ContentFeedRecordUpdater()

        updater.update(self.record, self.library)

        assert_equal(self.record.last_updated, datetime.datetime.min)
コード例 #3
0
ファイル: tests.py プロジェクト: citizennerd/councilmatic
    def changes_the_lastUpdated_of_a_legfiles_feed_to_most_recent_intro_date(self):
        updater = ContentFeedRecordUpdater()

        updater.update(self.record, self.library)

        assert_equal(self.record.last_updated, datetime.date(2011, 8, 17))
コード例 #4
0
ファイル: tests.py プロジェクト: phxdata/mesa-councilmatic
    def changes_the_lastUpdated_of_a_legfiles_feed_to_most_recent_intro_date(self):
        updater = ContentFeedRecordUpdater()

        updater.update(self.record, self.library)

        assert_equal(self.record.last_updated, datetime.datetime(2011, 8, 17, 0, 0))