code: def test_next_weekday(self):
      # Get first Monday after epoch
      assert util.next_weekday(datetime(1970, 1, 1), 0) == datetime(
          1970, 1, 5
      )
  
      # Get first Tuesday after epoch
      assert util.next_weekday(datetime(1970, 1, 1), 1) == datetime(
          1970, 1, 6
      )
  
      # Get first Wednesday after epoch
      assert util.next_weekday(datetime(1970, 1, 1), 2) == datetime(
          1970, 1, 7
      )
  
      # Get first Thursday after epoch
      assert util.next_weekday(datetime(1970, 1, 1), 3) == datetime(
          1970, 1, 1
      )
  
      # Get first Friday after epoch
      assert util.next_weekday(datetime(1970, 1, 1), 4) == datetime(
          1970, 1, 2
      )
  
      # Get first Saturday after epoch
      assert util.next_weekday(datetime(1970, 1, 1), 5) == datetime(
          1970, 1, 3
      )
  
      # Get first Sunday after epoch
      assert util.next_weekday(datetime(1970, 1, 1), 6) == datetime(
          1970, 1, 4
      )
  
      # Weekdays are 0-indexed
      with pytest.raises(ValueError):
          util.next_weekday(datetime(1970, 1, 1), 7)
  
      with pytest.raises(ValueError):
          util.next_weekday(datetime(1970, 1, 1), -1)
  
file_path: arrow-py/tests/test_util.py
imports: import time
  from datetime import datetime
  import pytest
  from arrow import util
label_desc: Use image node_id 1 for calling the TestUtil obj's underlying member method code with example usage: obj.test_next_weekday() without return types