'Scenario: Ensure that the course creation with non existing org display proper error message.
Given I have filled course creation form with a non existing and all required fields
When I click \'Create\' button
Form validation should pass
Then I see the error message explaining reason for failure to create course'

def test_create_course_with_non_existing_org(self):

    self.auth_page.visit()
    self.dashboard_page.visit()
    self.assertFalse(self.dashboard_page.has_course(org='testOrg', number=self.course_number, run=self.course_run))
    self.assertTrue(self.dashboard_page.new_course_button.present)
    self.dashboard_page.click_new_course_button()
    self.assertTrue(self.dashboard_page.is_new_course_form_visible())
    self.dashboard_page.fill_new_course_form(self.course_name, 'testOrg', self.course_number, self.course_run)
    self.assertTrue(self.dashboard_page.is_new_course_form_valid())
    self.dashboard_page.submit_new_course_form()
    self.assertTrue(self.dashboard_page.error_notification.present)
    self.assertIn(u'Organization    you    selected    does    not    exist    in    the    system', self.dashboard_page.error_notification_message)
