From 4b00c448f4a55859d5177c981a8fc4b388e8b5b3 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sun, 6 May 2018 02:50:54 +0200 Subject: Add another bunch of tests --- tests/test_hooks.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/test_hooks.py') diff --git a/tests/test_hooks.py b/tests/test_hooks.py index c819d6e..f0139e5 100644 --- a/tests/test_hooks.py +++ b/tests/test_hooks.py @@ -29,3 +29,10 @@ def test_id_hook_within_reblog(api, status): @pytest.mark.vcr() def test_date_hook(status): assert isinstance(status['created_at'], datetime) + +@pytest.mark.vcr() +def test_attribute_access(status): + assert status.id != None + with pytest.raises(AttributeError): + status.id = 420 + \ No newline at end of file -- cgit v1.2.3