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

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/d/j/django-starter-box-0.1.0/djaccount/tests/models.py   django-starter-box(Download)
        ext = Account.objects.fb_load_or_create(cookies=cookies, app_id=app_id, app_secret=app_secret)
 
        acc = Account.objects.login_external(request=req, service=ext.service, service_id=ext.service_id)
        self.assertTrue(acc.pk, ext.account.pk)
 
        with self.assertRaises(AccountMissingError):
            Account.objects.login_external(request=req, service=ext.service, service_id=ext.service_id+'0')                

src/d/j/django-starter-box-HEAD/djaccount/tests/models.py   django-starter-box(Download)
        ext = Account.objects.fb_load_or_create(cookies=cookies, app_id=app_id, app_secret=app_secret)
 
        acc = Account.objects.login_external(request=req, service=ext.service, service_id=ext.service_id)
        self.assertTrue(acc.pk, ext.account.pk)
 
        with self.assertRaises(AccountMissingError):
            Account.objects.login_external(request=req, service=ext.service, service_id=ext.service_id+'0')