'Test that a due date set on a chapter is inherited by grandchildren
(verticals) even if a due date is set explicitly on grandchildren in
the mooc.'

def test_override_is_inherited_even_if_set_in_mooc(self):

    ccx_due = datetime.datetime(2015, 1, 1, 0, 0, tzinfo=pytz.UTC)
    chapter = self.ccx_course.get_children()[0]
    chapter.display_name = 'itsme!'
    override_field_for_ccx(self.ccx, chapter, 'due', ccx_due)
    vertical = chapter.get_children()[0].get_children()[0]
    self.assertEqual(vertical.due, ccx_due)
