'Makes a timed exam.'

def make_exam_timed(self, hide_after_due=False):

    self.q(css='input.timed_exam').first.click()
    if hide_after_due:
        self.select_visibility_tab()
        self.q(css='input[name=content-visibility][value=hide_after_due]').first.click()
    self.q(css='.action-save').first.click()
    self.wait_for_ajax()
