'Scenario: Any course where there is a Pre-Requisite course Student dashboard should have
appropriate messaging.
Given that I am on the Student dashboard
When I view a course with a pre-requisite course set
Then At the bottom of course I should see course requirements message.\''

def test_dashboard_message(self):

    self.dashboard_page.visit()
    self.assertFalse(self.dashboard_page.pre_requisite_message_displayed())
    LogoutPage(self.browser).visit()
    AutoAuthPage(self.browser, course_id=self.course_id, staff=True).visit()
    self.settings_page.visit()
    self._set_pre_requisite_course()
    LogoutPage(self.browser).visit()
    AutoAuthPage(self.browser, course_id=self.course_id, staff=False).visit()
    self.dashboard_page.visit()
    EmptyPromise((lambda : (self.dashboard_page.available_courses > 0)), 'Dashboard    page    loaded').fulfill()
    self.assertTrue(self.dashboard_page.pre_requisite_message_displayed())
