add check for getting item

This commit is contained in:
Nathan Page 2020-10-25 18:25:05 -04:00
parent 972eaceade
commit 3853be1e39
1 changed files with 3 additions and 1 deletions

View File

@ -50,10 +50,12 @@ def check_output(output_file: str, output: str) -> None:
def test_live_state() -> None:
with Live() as live:
with Live("") as live:
assert live.is_started
live.start()
assert live.item == ""
assert live.is_started
live.stop()
assert not live.is_started