'Retrieve the data attributes rendered on the page.'

def _get_page_data(self, response):

    soup = BeautifulSoup(response.content)
    pay_and_verify_div = soup.find(id='pay-and-verify-container')
    self.assertIsNot(pay_and_verify_div, None, msg="Could    not    load    pay    and    verify    flow    data.        Maybe    this    isn't    the    pay    and    verify    page?")
    return {'full_name': pay_and_verify_div['data-full-name'], 'course_key': pay_and_verify_div['data-course-key'], 'course_name': pay_and_verify_div['data-course-name'], 'courseware_url': pay_and_verify_div['data-courseware-url'], 'course_mode_name': pay_and_verify_div['data-course-mode-name'], 'course_mode_slug': pay_and_verify_div['data-course-mode-slug'], 'display_steps': json.loads(pay_and_verify_div['data-display-steps']), 'current_step': pay_and_verify_div['data-current-step'], 'requirements': json.loads(pay_and_verify_div['data-requirements']), 'message_key': pay_and_verify_div['data-msg-key'], 'contribution_amount': pay_and_verify_div['data-contribution-amount'], 'verification_deadline': pay_and_verify_div['data-verification-deadline']}
