Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(50)  |  Call(32)  |  Derive(0)  |  Import(18)

src/z/a/zamboni-HEAD/mkt/api/tests/test_oauth.py   zamboni(Download)
from django.utils.encoding import iri_to_uri, smart_str
 
from django_browserid.tests import mock_browserid
from nose.tools import eq_
from oauthlib import oauth1
    def login(self, username, password):
        with mock_browserid(email=username):
            return super(OAuthClient, self).login(username=username,
                                                  password=password)
 

src/z/a/zamboni-HEAD/apps/amo/tests/__init__.py   zamboni(Download)
import tower
from dateutil.parser import parse as dateutil_parser
from django_browserid.tests import mock_browserid
from nose.exc import SkipTest
from nose.tools import eq_, nottest
        def fake_login(username, password):
            with mock_browserid(email=username):
                return real_login(username=username, password=password)
 
        self.client.login = fake_login

src/s/o/socorro-HEAD/webapp-django/vendor/lib/python/django_browserid/tests/test_auth.py   socorro(Download)
from django_browserid.auth import BrowserIDBackend, default_username_algo
from django_browserid.base import MockVerifier
from django_browserid.tests import mock_browserid, TestCase
 
try:
        pass and return the specified email.
        """
        with mock_browserid(verified_email):
            backend = BrowserIDBackend()
            return backend.authenticate(assertion='asdf', audience='asdf', **kwargs)
        new_user('b@example.com', 'test2')
 
        with mock_browserid('a@example.com'):
            backend = PickyBackend()
            result = backend.authenticate(assertion='asdf', audience='asdf')
            self.assertTrue(not result)
 
        with mock_browserid('b@example.com'):
        def _auth(self, backend=None, verified_email=None):
            if backend is None:
                backend = BrowserIDBackend()
 
            with mock_browserid(verified_email):

src/a/f/affiliates-HEAD/vendor-local/packages/django-browserid/django_browserid/tests/test_auth.py   affiliates(Download)
from django_browserid.auth import BrowserIDBackend, default_username_algo
from django_browserid.base import MockVerifier
from django_browserid.tests import mock_browserid, TestCase
 
try:
        pass and return the specified email.
        """
        with mock_browserid(verified_email):
            backend = BrowserIDBackend()
            return backend.authenticate(assertion='asdf', audience='asdf', **kwargs)
        new_user('b@example.com', 'test2')
 
        with mock_browserid('a@example.com'):
            backend = PickyBackend()
            result = backend.authenticate(assertion='asdf', audience='asdf')
            self.assertTrue(not result)
 
        with mock_browserid('b@example.com'):
        def _auth(self, backend=None, verified_email=None):
            if backend is None:
                backend = BrowserIDBackend()
 
            with mock_browserid(verified_email):

src/p/l/playdoh-lib-HEAD/lib/python/django_browserid/tests/test_auth.py   playdoh-lib(Download)
from django_browserid.auth import BrowserIDBackend, default_username_algo
from django_browserid.base import MockVerifier
from django_browserid.tests import mock_browserid, TestCase
 
try:
        pass and return the specified email.
        """
        with mock_browserid(verified_email):
            backend = BrowserIDBackend()
            return backend.authenticate(assertion='asdf', audience='asdf', **kwargs)
        new_user('b@example.com', 'test2')
 
        with mock_browserid('a@example.com'):
            backend = PickyBackend()
            result = backend.authenticate(assertion='asdf', audience='asdf')
            self.assertTrue(not result)
 
        with mock_browserid('b@example.com'):
        def _auth(self, backend=None, verified_email=None):
            if backend is None:
                backend = BrowserIDBackend()
 
            with mock_browserid(verified_email):

src/t/r/treeherder-service-HEAD/vendor/django_browserid/tests/test_auth.py   treeherder-service(Download)
from django_browserid.auth import BrowserIDBackend, default_username_algo
from django_browserid.base import MockVerifier
from django_browserid.tests import mock_browserid, TestCase
 
try:
        pass and return the specified email.
        """
        with mock_browserid(verified_email):
            backend = BrowserIDBackend()
            return backend.authenticate(assertion='asdf', audience='asdf', **kwargs)
        new_user('b@example.com', 'test2')
 
        with mock_browserid('a@example.com'):
            backend = PickyBackend()
            result = backend.authenticate(assertion='asdf', audience='asdf')
            self.assertTrue(not result)
 
        with mock_browserid('b@example.com'):
        def _auth(self, backend=None, verified_email=None):
            if backend is None:
                backend = BrowserIDBackend()
 
            with mock_browserid(verified_email):

src/d/j/django-browserid-0.10/django_browserid/tests/test_auth.py   django-browserid(Download)
from django_browserid.auth import BrowserIDBackend, default_username_algo
from django_browserid.base import MockVerifier
from django_browserid.tests import mock_browserid, TestCase
 
try:
        pass and return the specified email.
        """
        with mock_browserid(verified_email):
            backend = BrowserIDBackend()
            return backend.authenticate(assertion='asdf', audience='asdf', **kwargs)
        new_user('b@example.com', 'test2')
 
        with mock_browserid('a@example.com'):
            backend = PickyBackend()
            result = backend.authenticate(assertion='asdf', audience='asdf')
            self.assertTrue(not result)
 
        with mock_browserid('b@example.com'):
        def _auth(self, backend=None, verified_email=None):
            if backend is None:
                backend = BrowserIDBackend()
 
            with mock_browserid(verified_email):

src/t/r/treeherder-service-HEAD/vendor/django_browserid/tests/test_views.py   treeherder-service(Download)
from django_browserid import BrowserIDException, views
from django_browserid.auth import BrowserIDBackend
from django_browserid.tests import mock_browserid, TestCase
 
 

src/s/o/socorro-HEAD/webapp-django/vendor/lib/python/django_browserid/tests/test_views.py   socorro(Download)
 
from django_browserid import BrowserIDException, views
from django_browserid.tests import mock_browserid, TestCase
 
 

src/p/l/playdoh-lib-HEAD/lib/python/django_browserid/tests/test_views.py   playdoh-lib(Download)
 
from django_browserid import BrowserIDException, views
from django_browserid.tests import mock_browserid, TestCase
 
 

  1 | 2  Next