Files
syn-chat-bot/.venv/lib/python3.9/site-packages/icalendar/tests/prop/test_vBoolean.py
Hyungi Ahn c2257d3a86 fix: 포트 충돌 회피 — note_bridge 8098, intent_service 8099
Jellyfin(8096), OrbStack(8097) 포트 충돌으로 변경.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 13:53:55 +09:00

23 lines
439 B
Python

import pytest
from icalendar.prop import vBoolean
def test_true():
assert vBoolean(True).to_ical() == b"TRUE"
def test_false():
assert vBoolean(0).to_ical() == b"FALSE"
def test_roundtrip():
assert vBoolean.from_ical(vBoolean(True).to_ical()) == True
assert vBoolean.from_ical("true") == True
def test_error():
"""Error: key not exists"""
with pytest.raises(ValueError):
vBoolean.from_ical("ture")