def assert_user_has_dag_perms(self, perms, dag_id, user=None):
    for perm in perms:
        self.assertTrue(self._has_dag_perm(perm, dag_id, user), f"User should have '{perm}' on DAG '{dag_id}'")
def assert_user_has_dag_perms(self, perms, dag_id, user=None):
    for perm in perms:
        self.assertTrue(self._has_dag_perm(perm, dag_id, user), f"User should have '{perm}' on DAG '{dag_id}'")