'Scenario: I perform a course / library export
On export success, the page displays a UTC timestamp previously not visible
And if I refresh the page, the timestamp is still displayed'

def test_export_timestamp(self):

    self.assertFalse(self.export_page.is_timestamp_visible())
    export_start_time = datetime.utcnow().replace(microsecond=0, second=0)
    self.export_page.wait_for_export_click_handler()
    self.export_page.click_export()
    self.export_page.wait_for_export()
    export_finish_time = datetime.utcnow().replace(microsecond=0, second=0)
    export_timestamp = self.export_page.parsed_timestamp
    self.export_page.wait_for_timestamp_visible()
    self.assertLessEqual(export_start_time, export_timestamp, 'Course    export    timestamp    should    be    export_start_time    <=    export_timestamp    <=    export_end_time')
    self.assertGreaterEqual(export_finish_time, export_timestamp, 'Course    export    timestamp    should    be    export_start_time    <=    export_timestamp    <=    export_end_time')
    self.export_page.visit()
    self.export_page.wait_for_tasks(completed=True)
    self.export_page.wait_for_timestamp_visible()
