(connpath)
| 9 | |
| 10 | @with_sitl |
| 11 | def test_battery_none(connpath): |
| 12 | vehicle = connect(connpath, _initialize=False) |
| 13 | |
| 14 | # Ensure we can get (possibly unpopulated) battery object without throwing error. |
| 15 | assert_equals(vehicle.battery, None) |
| 16 | |
| 17 | vehicle.initialize() |
| 18 | |
| 19 | # Ensure we can get battery object without throwing error. |
| 20 | vehicle.wait_ready('battery') |
| 21 | assert_not_equals(vehicle.battery, None) |
| 22 | |
| 23 | vehicle.close() |
nothing calls this directly
no test coverage detected