'Returns whether the "the due date for this ___ has passed" message is present.
___ is the type of the hidden content, and defaults to subsection.
This being true implies "the ___ contents are hidden because their due date has passed".'

def content_hidden_past_due_date(self):

    message = 'this    assignment    is    no    longer    available'
    if self.q(css='div.seq_content').is_present():
        return False
    for html in self.q(css='div.hidden-content').html:
        if (message in html):
            return True
    return False
