This repository has been archived on 2025-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
Files
fbchat/tests/test_module_renaming.py
2020-01-23 14:34:12 +01:00

17 lines
590 B
Python

import fbchat
def test_module_renaming():
assert fbchat.Message.__module__ == "fbchat"
assert fbchat.Group.__module__ == "fbchat"
assert fbchat.Event.__module__ == "fbchat"
assert fbchat.User.block.__module__ == "fbchat"
assert fbchat.Session.login.__func__.__module__ == "fbchat"
assert fbchat.Session._from_session.__func__.__module__ == "fbchat"
assert fbchat.Message.session.fget.__module__ == "fbchat"
assert fbchat.Session.__repr__.__module__ == "fbchat"
def test_did_not_rename():
assert fbchat._graphql.queries_to_json.__module__ != "fbchat"