@staticmethod
    def callback_team_membership(
            request, uri, headers, success=True, action_list=None
    ):
        # pylint: disable=too-many-arguments

        username = uri.rsplit('/', 1)[1]
        if not success:
            status_code = 500

        if request.method == 'DELETE':
            if success:
                status_code = 204
                action_list.append((username, False))
        if request.method == 'PUT':
            status_code = 200
            action_list.append((username, True))
        return (status_code, headers, '')
Chaining of filters using the & operator.
dataset/ETHPy150Open mitodl/orcoursetrion/orcoursetrion/tests/base.py/TestGithubBase.callback_team_membership--crossover with--dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/filters/base.py/Filter.__and__