#NEWLINE# def test_editing_plugin_changes_page_modification_time_in_sitemap( self ) : #NEWLINE# #INDENT# now = timezone . now ( ) #NEWLINE# one_day_ago = ( now - datetime . timedelta ( days = 1 ) ) #NEWLINE# page = api . create_page ( 'page' , 'nav_playground.html' , 'en' , published = True ) #NEWLINE# title = page . get_title_obj ( 'en' ) #NEWLINE# page . creation_date = one_day_ago #NEWLINE# page . changed_date = one_day_ago #NEWLINE# plugin_id = self . _create_text_plugin_on_page ( page ) #NEWLINE# plugin = self . _edit_text_plugin ( plugin_id , 'fnord' ) #NEWLINE# actual_last_modification_time = CMSSitemap ( ) . lastmod ( title ) #NEWLINE# actual_last_modification_time -= datetime . timedelta ( microseconds = actual_last_modification_time . microsecond ) #NEWLINE# self . assertEqual ( plugin . changed_date . date ( ) , actual_last_modification_time . date ( ) )