def test_load_channels(pb_refresh): pb = PushBullet("apikey") pb._load_channels() assert len(pb.channels) == 1