Ejemplo n.º 1
0
 def test_identifier_without_forged_userid(self):
     environ = {}
     p = AuthenticationForgerPlugin()
     identity = p.identify(environ)
     self.assertEqual(identity, None)
Ejemplo n.º 2
0
 def test_identifier_with_forged_userid(self):
     environ = {'REMOTE_USER': '******'}
     p = AuthenticationForgerPlugin()
     identity = p.identify(environ)
     self.assertEqual(identity, {'fake-userid': 'gustavo'})