def test_choice_from_empty_sequence_raises_indexerror():
    with pytest.raises(IndexError):
        secrets.choice([])
def test_choice():
    seq = tuple(range(100))
    chosen = secrets.choice(seq)
    assert chosen in seq