(connpath)
| 8 | |
| 9 | @with_sitl |
| 10 | def test_empty_clear(connpath): |
| 11 | vehicle = connect(connpath) |
| 12 | |
| 13 | # Calling clear() on an empty object should not crash. |
| 14 | vehicle.commands.clear() |
| 15 | vehicle.commands.upload() |
| 16 | |
| 17 | assert_equals(len(vehicle.commands), 0) |
| 18 | |
| 19 | vehicle.close() |
| 20 | |
| 21 | |
| 22 | @with_sitl |