'Scenario:
Course Date should have the format \'Starts - Wednesday at 5am UTC\'
if the course on student dashboard starts within 5 days.
As a Student,
Given that I have enrolled to a course
And the course starts within 5 days
When I visit dashboard page
Then the course date should have the following format "Starts - %A at %-I%P UTC"
e.g. "Starts - Wednesday at 5am UTC"'

def test_near_future_course_date(self):

    course_start_date = (self.now + datetime.timedelta(days=2))
    course_end_date = (self.now + datetime.timedelta(days=365))
    self.course_fixture.add_course_details({'start_date': course_start_date, 'end_date': course_end_date})
    self.course_fixture.configure_course()
    start_date = TEST_DATE_FORMAT.format(dt=course_start_date)
    expected_course_date = 'Starts    -    {start_date}    GMT'.format(start_date=start_date)
    self.dashboard_page.visit()
    course_date = self.dashboard_page.get_course_date()
    self.assertEqual(course_date, expected_course_date)
