def test_accessible_role_based_events(self):
        """Method to test accessible role of a user based on an event"""

        with self.app.test_request_context(headers=self.auth, method="POST"):
            response = accessible_role_based_events(
                lambda *a, **b: b.get('user_id'), (), {}, (), {})
            assert response is not None
    def test_accessible_role_based_events(self):
        """Method to test accessible role of a user based on an event"""

        with app.test_request_context(headers=self.auth, method="POST"):
            response = accessible_role_based_events(lambda *a, **b: b.get('user_id'), (), {}, (), {})
            assert response is not None