def test_update_fkey(): """ Tests that the correct chat fkey is retrived, using a mock response with a copy of a real response from /chats/join/favorite """ with only_httmock(favorite_with_test_fkey): browser = Browser() browser.host = 'stackexchange.com' assert browser.chat_fkey == TEST_FKEY