'Helper function to test that today\'s date block renders correctly
and displays the correct time, accounting for daylight savings'

def test_todays_date_block(self):

    with freeze_time('2015-01-02'):
        course = self.create_course_run()
        user = self.create_user()
        block = TodaysDate(course, user)
        self.assertTrue(block.is_enabled)
        self.assertEqual(block.date, datetime.now(utc))
        self.assertEqual(block.title, 'current_datetime')
