Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/d/j/django-swingers-1.1.1/swingers/sauth/tests.py   django-swingers(Download)
from django.test.utils import override_settings
 
from swingers.sauth.backends import PersonaBackend, EmailBackend
from swingers.sauth.models import ApplicationLink, Token
from swingers.utils.auth import make_nonce
    def test_email_identifier(self):
        backend = PersonaBackend()
        qs = User.objects.filter(email__iexact='issapps@dec.wa.gov.au')
        users = backend.filter_users_by_email('ISSAPPS@dec.wa.gov.au')
        self.assertEqual(list(users), list(qs))