def test_get_permissions_queryset(self):
        view = self.view_class()
        view.request = self.request_factory.get('/')
        view.request.user = self.create_user()

        # Create a new "target" user, who is the user the view will be set to
        # edit during a regular request.
        target_user = self.create_user()
        view.object = target_user

        # Get the existing queryset of changeable permissions. This should only
        # include permissions set in the `view.editable_permissions` attribute.
        permissions_queryset = view.get_permissions_queryset()

        self.assertEqual(permissions_queryset.count(), 1)
        self.assertIn(self.valid_permission, permissions_queryset)
        self.assertNotIn(self.hidden_permission, permissions_queryset)

        # Add the hidden permission to the user's list of permissions. This
        # should cause the hidden permission to appear in the queryset
        target_user.user_permissions.add(self.hidden_permission)

        # Re-generate a queryset of editable views
        extended_permissions_queryset = view.get_permissions_queryset()

        self.assertEqual(extended_permissions_queryset.count(), 2)
        self.assertIn(self.valid_permission, extended_permissions_queryset)
        self.assertIn(self.hidden_permission, extended_permissions_queryset)
HStore expression.  Returns the contents of this hstore with the
dataset/ETHPy150Open ofa/connect/open_connect/accounts/tests/test_views.py/UpdateUserPermissionViewTest.test_get_permissions_queryset--crossover with--dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/hstore.py/HSTORE.comparator_factory.delete