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-publicmanager-HEAD/django_publicmanager_tests/manager_tests/tests.py   django-publicmanager(Download)
    def test_public_method_is_public(self):
        qs = PublicQuerySet(PublicDefault,
            is_public_attr='is_public')
        self.assertEqual(
            set(PublicDefault.objects.all()),
    def test_public_method_pub_date(self):
        qs = PublicQuerySet(PublicDefault,
            pub_date_attr='pub_date')
        self.assertEqual(
            set(PublicDefault.objects.all()),
            pub_date_attr='pub_date')
        self.assertEqual(
            set(PublicDefault.objects.all()),
            set(qs.all()))
        self.assertEqual(4, len(qs.all()))
    def test_default_attr_names(self):
        qs = PublicDefault.generic.all()
        self.assertEqual(
            set(PublicDefault.objects.all()),
            set(qs.all()))