'Verify visiting the learner dashboard sets the user info cookie.'

def test_user_info_cookie(self):

    self.assertNotIn(settings.EDXMKTG_USER_INFO_COOKIE_NAME, self.client.cookies)
    request = RequestFactory().get(self.path)
    request.user = self.user
    expected = json.dumps(get_user_info_cookie_data(request))
    self.client.get(self.path)
    actual = self.client.cookies[settings.EDXMKTG_USER_INFO_COOKIE_NAME].value
    self.assertEqual(actual, expected)
