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

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

src/d/j/django-publicmanager-HEAD/django_publicmanager_tests/manager_tests/tests.py   django-publicmanager(Download)
    def test_public_method_status(self):
        qs = PublicQuerySet(PublicStatus,
            status_attr='status',
            status_values=PublicStatus.PUBLIC_STATUS)
        self.assertEqual(
            set(PublicStatus.objects.all()),
            set(qs.all()))
        self.assertEqual(4, len(qs.all()))
        self.assertEqual(
            set(PublicStatus.objects.filter(status__in=PublicStatus.PUBLIC_STATUS)),
        qs = PublicStatus.generic.public()
        self.assertEqual(
            set(PublicStatus.objects.filter(status__in=PublicStatus.PUBLIC_STATUS)),
            set(qs))
        self.assertEqual(2, len(qs))
    def test_status(self):
        qs = PublicStatus.public.all()
        self.assertEqual(
            set(PublicStatus.objects.filter(status__in=PublicStatus.PUBLIC_STATUS)),
            set(qs))