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

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

src/d/j/django-proxy-HEAD/tests/test_models.py   django-proxy(Download)
    def test_models_with_status(self):
        proxy_count = Proxy.objects.count()
        self.assertEqual(proxy_count, 0)
        now = datetime.datetime.now()
 
        post.save()
 
        proxy_count = Proxy.objects.count()
        self.assertEqual(proxy_count, 1)
 
        post.status = post.DRAFT_STATUS
        post.save()
        proxy_count = Proxy.objects.count()
        self.assertEqual(proxy_count, 0)
 
        post.status = post.PUBLIC_STATUS
        post.save()
        proxy_count = Proxy.objects.count()
    def test_models_with_boolean(self):
        proxy_count = Proxy.objects.count()
        self.assertEqual(proxy_count, 0)
        now = datetime.datetime.now()