def test_get_quicklink_data(self):
        data = {
            "affiliation": "student",
            "url": "http://iss1.washington.edu/",
            "label": "ISS1",
            "campus": "seattle",
            "pce": False,
            "affiliation": "{intl_stud: True}",
            }
        plink = PopularLink.objects.create(**data)

        username = "jinter"
        req = get_request_with_user(username)
        affiliations = get_all_affiliations(req)
        user = get_user_model(req)
        link_data = {
            "user": user,
            "url": "http://iss.washington.edu/",
            "label": "ISS1",
            "is_anonymous": False,
            "is_student": affiliations.get('student', False),
            "is_undegrad": affiliations.get('undergrad', False),
            "is_grad_student": affiliations.get('grad', False),
            "is_employee": affiliations.get('employee', False),
            "is_faculty": affiliations.get('faculty', False),
            "is_seattle": affiliations.get('seattle', False),
            "is_tacoma": affiliations.get('tacoma', False),
            "is_bothell": affiliations.get('bothell', False),
            "is_pce": affiliations.get('pce', False),
            "is_student_employee": affiliations.get('stud_employee',
                                                    False),
            "is_intl_stud": affiliations.get('intl_stud', False)
        }
        l1 = VisitedLinkNew.objects.create(**link_data)

        qls = get_quicklink_data(req)
        self.assertEqual(qls['recent_links'][0]['label'], "ISS1")

        self.assertEqual(qls['default_links'][0]['label'],
                         "International Student Services (ISS)")