'Scenario: Ensure that block release/due dates are not shown
in their settings modals.
Given I am the author of a self-paced course
When I go to the course outline
And I click on settings for a section or subsection
Then I should not see release or due date settings'

def test_edit_section_and_subsection(self):

    self.course_outline_page.visit()
    section = self.course_outline_page.section(SECTION_NAME)
    modal = section.edit()
    self.assertFalse(modal.has_release_date())
    self.assertFalse(modal.has_due_date())
    modal.cancel()
    subsection = section.subsection(SUBSECTION_NAME)
    modal = subsection.edit()
    self.assertFalse(modal.has_release_date())
    self.assertFalse(modal.has_due_date())
