def setUp(self):
        """
        Create user_1 with access to queue_1 containing 1 ticket
        and    user_2 with access to queue_2 containing 2 tickets
        and superuser who should be able to access both queues
        """
        self.HELPDESK_ENABLE_PER_QUEUE_STAFF_PERMISSION = settings.HELPDESK_ENABLE_PER_QUEUE_STAFF_PERMISSION
        settings.HELPDESK_ENABLE_PER_QUEUE_STAFF_PERMISSION = True
        self.client = Client()
        User = get_user_model()

        self.superuser = User.objects.create(
            username='superuser',
            is_staff=True,
            is_superuser=True,
        )
        self.superuser.set_password('superuser')
        self.superuser.save()

        for identifier in self.IDENTIFIERS:
            queue = self.__dict__['queue_%d' % identifier] = Queue.objects.create(
                title='Queue %d' % identifier,
                slug=identifier % 'q%d',
            )

            user = self.__dict__['user_%d' % identifier] = User.objects.create(
                username='User_%d' % identifier,
                is_staff=True,
            )
            user.set_password(identifier)
            user.save()

            # The prefix 'helpdesk.' must be trimmed
            p = Permission.objects.get(codename=queue.permission_name[9:])
            user.user_permissions.add(p)

            for ticket_number in range(1, identifier + 1):
                Ticket.objects.create(
                    title='Unassigned Ticket %d in Queue %d' % (ticket_number, identifier),
                    queue=queue,
                )
                Ticket.objects.create(
                    title='Ticket %d in Queue %d Assigned to User_%d' % (ticket_number, identifier, identifier),
                    queue=queue,
                    assigned_to=user,
                )
dataset/ETHPy150Open rossp/django-helpdesk/helpdesk/tests/test_per_queue_staff_permission.py/PerQueueStaffMembershipTestCase.setUp/swapped operands of `%`