'Asserts the VerifiedUpgradeDeadlineDate block\'s date matches the expected value.'

def assert_upgrade_deadline(self, course, expected):

    enrollment = CourseEnrollmentFactory(course_id=course.id, mode=CourseMode.AUDIT)
    block = VerifiedUpgradeDeadlineDate(course, enrollment.user)
    self.assertEqual(block.date, expected)
