Ticket #1407: identity.patch

File identity.patch, 0.7 kB (added by simonk, 1 year ago)

Patch to identity test suite to demonstrate the problem

  • identity/tests/test_identity.py

    old new  
    435435        firstline = cherrypy.response.body[0] 
    436436        assert 'identity_failed' in firstline, firstline 
    437437 
     438    def test_decode_filter(self): 
     439        """Test that the decode filter doesn't break with nested 
     440        variables and Identity""" 
     441        testutil.create_request('/in_admin_group?a.b=1&a.c=2') 
     442        firstline = cherrypy.response.body[0] 
     443        assert 'identity_failed_answer' in firstline, firstline 
    438444 
    439445class TestTGUser(testutil.DBTest): 
    440446    model = TG_User