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)
 
        acc.is_active = True 
        Account.objects.change_email(account=acc, email=self.EMAIL_2)
        code2 = Account.objects.calc_verify_code(account=acc)        
        self.assertFalse(acc.is_active)
 
        with self.assertRaises(AccountEmailTakenError):
            Account.objects.change_email(account=acc, email=self.EMAIL_2)
 
        self.assertTrue(acc.is_active)

src/d/j/django-starter-box-HEAD/djaccount/tests/models.py   django-starter-box(Download)
 
        acc.is_active = True 
        Account.objects.change_email(account=acc, email=self.EMAIL_2)
        code2 = Account.objects.calc_verify_code(account=acc)        
        self.assertFalse(acc.is_active)
 
        with self.assertRaises(AccountEmailTakenError):
            Account.objects.change_email(account=acc, email=self.EMAIL_2)
 
        self.assertTrue(acc.is_active)