def METHOD_NAME(self):
    """context processor has TOS link to Misago view"""
    agreement = Agreement.objects.create(
        type=Agreement.TYPE_PRIVACY, text="Lorem ipsum", is_active=True
    )
    context_dict = legal_links(MockRequest(self.user))
    self.assertEqual(
        context_dict,
        {
            "TERMS_OF_SERVICE_ID": None,
            "TERMS_OF_SERVICE_TITLE": None,
            "TERMS_OF_SERVICE_URL": None,
            "PRIVACY_POLICY_ID": agreement.id,
            "PRIVACY_POLICY_TITLE": "Privacy policy",
            "PRIVACY_POLICY_URL": reverse("misago:privacy-policy"),
            "misago_agreement": {
                "type": "Privacy policy",
                "title": "Privacy policy",
                "link": None,
                "text": "<p>Lorem ipsum</p>",
            },
        },
    )