def METHOD_NAME(self):
    with make_image_file() as image_file:
        create_profile_images(image_file, get_profile_image_names(self.user.username))
        self.user.profile.profile_image_uploaded_at = date.today()
        self.user.profile.save()
    actual = cookies_api._get_user_info_cookie_data(self.request, self.user)  # pylint: disable=protected-access
    expected = {
        'version': settings.EDXMKTG_USER_INFO_COOKIE_VERSION,
        'username': self.user.username,
        'email': self.user.email,
        'header_urls': self._get_expected_header_urls(),
        'user_image_urls': self._get_expected_image_urls(),
    }
    self.assertDictEqual(actual, expected)