def test_load_chats(pb_refresh): pb = PushBullet("apikey") pb._load_chats() assert len(pb.chats) == 1