@mock.patch.object(settings._wrapped, 'READ_ONLY', False)
    def test_not_readonly_login_link_enabled(self):
        """Ensure that login/register links are visible in not READ_ONLY."""
        html = render_to_string(self.template, request=self.request)
        doc = pq(html)
        assert len(doc('a.sign-out, a.sign-in')) > 0
dataset/ETHPy150Open mozilla/kitsune/kitsune/sumo/tests/test_templates.py/BaseTemplateTests.test_not_readonly_login_link_enabled/original