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

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

src/d/j/django-publicmanager-HEAD/django_publicmanager_tests/manager_tests/tests.py   django-publicmanager(Download)
        self.assertEqual(4, len(qs.all()))
        self.assertEqual(
            set(PublicDefault.objects.filter(is_public=True)),
            set(qs.public()))
        self.assertEqual(2, len(qs.public()))
        self.assertEqual(4, len(qs.all()))
        self.assertEqual(
            set(PublicDefault.objects.filter(pub_date__lte=datetime.utcnow())),
            set(qs.public()))
        self.assertEqual(2, len(qs.public()))
        self.assertEqual(4, len(qs.all()))
        self.assertEqual(
            set(PublicDefault.objects.filter(is_public=True, pub_date__lte=datetime.utcnow())),
            set(qs.public()))
        self.assertEqual(1, len(qs.public()))
        qs = PublicDefault.generic.public()
        self.assertEqual(
            set(PublicDefault.objects.filter(is_public=True, pub_date__lte=datetime.utcnow())),
            set(qs))
        self.assertEqual(1, len(qs.public()))
    def test_default_attr_names(self):
        qs = PublicDefault.public.all()
        self.assertEqual(
            set(PublicDefault.objects.filter(is_public=True,
                pub_date__lte=datetime.utcnow())),