def test_to_weekday_from_int():
    assert recurrence.to_weekday(1) == recurrence.Weekday(1)

    with pytest.raises(ValueError):
        recurrence.to_weekday(7)
dataset/ETHPy150Open django-recurrence/django-recurrence/tests/test_to_weekday.py/test_to_weekday_from_int/original