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)
        code = Account.objects.calc_verify_code(account=acc)
 
        res = Account.objects.do_verify(account=acc, code=code.upper())
        self.assertFalse(res)
        self.assertFalse(acc.is_active)
 
        acc = Account.objects.get(pk=acc.pk)
        self.assertFalse(acc.is_active)
 
        res = Account.objects.do_verify(account=acc, code=code)

src/d/j/django-starter-box-HEAD/djaccount/tests/models.py   django-starter-box(Download)
        code = Account.objects.calc_verify_code(account=acc)
 
        res = Account.objects.do_verify(account=acc, code=code.upper())
        self.assertFalse(res)
        self.assertFalse(acc.is_active)
 
        acc = Account.objects.get(pk=acc.pk)
        self.assertFalse(acc.is_active)
 
        res = Account.objects.do_verify(account=acc, code=code)