'Scenario: I can edit settings of section.
Given that I have created a section
Then I see release date of section in course outline
When I click on the configuration icon
Then edit modal window is shown
And release date field present
And it has correct initial value
Then I set new value for this field
And I click save button on the modal
Then I see release date of section in course outline'

def test_can_edit_section(self):

    self.course_outline_page.visit()
    section = self.course_outline_page.section(SECTION_NAME)
    self.assertTrue(section.release_date)
    self.assertFalse(section.due_date)
    self.assertFalse(section.policy)
    modal = section.edit()
    self.assertTrue(modal.has_release_date())
    self.assertFalse(modal.has_due_date())
    self.assertFalse(modal.has_policy())
    self.assertEqual(modal.release_date, u'1/1/1970')
    modal.release_date = '5/14/1969'
    modal.save()
    self.assertIn(u'Released:    May    14,    1969', section.release_date)
    self.assertFalse(section.due_date)
    self.assertFalse(section.policy)
