'Verify that the student\'s can_enroll status is included.'

@ddt.data(True, False)
@mock.patch((UTILS_MODULE + '.has_access'))
def test_can_enroll(self, can_enroll, mock_has_access):

    mock_has_access.return_value = can_enroll
    data = ProgramMarketingDataExtender(self.program, self.user).extend()
    self.assertEqual(data['courses'][0]['course_runs'][0]['can_enroll'], can_enroll)
