diff options
author | Lorenz Diener <[email protected]> | 2018-05-06 15:55:32 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2018-05-06 15:55:32 +0200 |
commit | ca0ea36c6edd58dc15e5fd7f31f24ba5097d6e8d (patch) | |
tree | 98328e8776447334b19592992016d9b7f16ae98b /tests/test_hooks.py | |
parent | 06e32c14bcb5a1ef1a5e618a1b413ea011416c9d (diff) | |
parent | fbd4122fec092bff6b1cc9f44dfeda6ee693c41b (diff) | |
download | mastodon.py-ca0ea36c6edd58dc15e5fd7f31f24ba5097d6e8d.tar.gz |
Merge branch 'master' into stream-timeout
Diffstat (limited to 'tests/test_hooks.py')
-rw-r--r-- | tests/test_hooks.py | 7 |
1 files changed, 7 insertions, 0 deletions
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): | |||
29 | @pytest.mark.vcr() | 29 | @pytest.mark.vcr() |
30 | def test_date_hook(status): | 30 | def test_date_hook(status): |
31 | assert isinstance(status['created_at'], datetime) | 31 | assert isinstance(status['created_at'], datetime) |
32 | |||
33 | @pytest.mark.vcr() | ||
34 | def test_attribute_access(status): | ||
35 | assert status.id != None | ||
36 | with pytest.raises(AttributeError): | ||
37 | status.id = 420 | ||
38 | \ No newline at end of file | ||