Exemplo n.º 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))
Exemplo n.º 2
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))