def METHOD_NAME(self):
    """Method to test whether a user is coorganizer of an event or not"""
    with self.app.test_request_context(headers=self.auth, method="POST"):
        uer = UsersEventsRolesSubFactory(
            user_id=1, event_id=1, role__name='coorganizer'
        )
        save_to_db(uer)
        assert has_access('is_coorganizer', event_id=1)