class_docstr: Tests for BranchDayOfWeekOperator
class_docstr_tok: ["Tests","for","BranchDayOfWeekOperator"]
docstr: Check if BranchDayOfWeekOperator raises exception on wrong value of weekday
docstr_tok: ["Check","if","BranchDayOfWeekOperator","raises","exception","on","wrong","value","of","weekday"]
code: def test_weekday_branch_invalid_weekday_value(
      self, _, week_day, fail_msg
  ):
      """Check if BranchDayOfWeekOperator raises exception on wrong value of weekday"""
      with pytest.raises(
          AttributeError, match=f'Invalid Week Day passed: "{fail_msg}"'
      ):
          BranchDayOfWeekOperator(
              task_id="make_choice",
              follow_task_ids_if_true="branch_1",
              follow_task_ids_if_false="branch_2",
              week_day=week_day,
              dag=self.dag,
          )
  
imports: from __future__ import annotations
  import datetime
  import pytest
  import time_machine
  from airflow.exceptions import AirflowException
  from airflow.models.dag import DAG
  from airflow.models.dagrun import DagRun
  from airflow.models.taskinstance import TaskInstance
  from airflow.models.xcom import XCom
  from airflow.operators.empty import EmptyOperator
  from airflow.operators.weekday import BranchDayOfWeekOperator
  from airflow.utils import timezone
  from airflow.utils.session import create_session
  from airflow.utils.state import State
  from airflow.utils.weekday import WeekDay
label_desc: Use image node_id 10 for calling the TestBranchDayOfWeekOperator obj's underlying member method code with example usage: obj.test_weekday_branch_invalid_weekday_value(_, week_day, fail_msg) without return types