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

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

src/d/j/django-notifier-0.7/notifier/tests.py   django-notifier(Download)
        # Compare querysets after converting to lists, becuase different
        # instance of same queryset will not test as equal.
        resp = shortcuts._get_permission_queryset(permissions)
        # print resp
        self.assertEqual(list(resp), list(permissions),
            msg='Queryset input failed')
 
        resp = shortcuts._get_permission_queryset(permissions[0])
 
        resp = shortcuts._get_permission_queryset(
            list(permissions.values_list('codename', flat=True)))
        # print resp
        self.assertEqual(list(resp), list(permissions),
            msg='Permission codename list input failed')
 
        resp = shortcuts._get_permission_queryset(permissions[0].codename)

src/d/j/django-notifier-HEAD/notifier/tests.py   django-notifier(Download)
        # Compare querysets after converting to lists, becuase different
        # instance of same queryset will not test as equal.
        resp = shortcuts._get_permission_queryset(permissions)
        # print resp
        self.assertEqual(list(resp), list(permissions),
            msg='Queryset input failed')
 
        resp = shortcuts._get_permission_queryset(permissions[0])
 
        resp = shortcuts._get_permission_queryset(
            list(permissions.values_list('codename', flat=True)))
        # print resp
        self.assertEqual(list(resp), list(permissions),
            msg='Permission codename list input failed')
 
        resp = shortcuts._get_permission_queryset(permissions[0].codename)