def test_load_devices(pb_refresh): pb = PushBullet("apikey") pb._load_devices() assert len(pb.devices) == 1