mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 21:03:45 +03:00
14 lines
327 B
Python
14 lines
327 B
Python
import pytest
|
|
|
|
from telethon import _tl
|
|
|
|
|
|
def test_nested_invalid_serialization():
|
|
large_long = 2**62
|
|
request = _tl.fn.account.SetPrivacy(
|
|
key=_tl.InputPrivacyKeyChatInvite(),
|
|
rules=[_tl.InputPrivacyValueDisallowUsers(users=[large_long])]
|
|
)
|
|
with pytest.raises(TypeError):
|
|
bytes(request)
|