示例#1
0
    def returns_the_date_taken_of_a_minutes_document (self):
        from phillyleg.models import LegMinutes
        minutes = LegMinutes()
        minutes.date_taken = date(2011,8,23)

        feed_data = SearchResultsFeed(None)
        last_updated = feed_data.get_last_updated(minutes)

        assert_equal(last_updated, date(2011,8,23))
    def returns_the_order_date_of_a_piece_of_legislation_or_minutes (self):
        content = [Mock(), Mock(), Mock()]
        content[-1].order_date = 5

        feed_data = SearchResultsFeed(None)
        feed_data.get_content = Mock(return_value=content)
        last_updated = feed_data.get_last_updated_time()

        assert_equal(last_updated, 5)
示例#3
0
    def returns_the_intro_date_of_a_piece_of_legislation (self):
        from phillyleg.models import LegFile
        legislation = LegFile()
        legislation.intro_date = date(2011,8,22)

        feed_data = SearchResultsFeed(None)
        last_updated = feed_data.get_last_updated(legislation)

        assert_equal(last_updated, date(2011,8,22))