def use_user(self, user_db):
        mock_context = {
            'auth': {
                'user': user_db
            }
        }
        self.pecan_request_context_mock = mock.PropertyMock(return_value=mock_context)
        type(pecan.request).context = self.pecan_request_context_mock
Apply a filter to an array.
dataset/ETHPy150Open StackStorm/st2/st2api/tests/base.py/APIControllerWithRBACTestCase.use_user--crossover with--dataset/ETHPy150Open kwikteam/phy/phy/traces/filter.py/apply_filter