diff options
Diffstat (limited to 'tests/device.rs')
-rw-r--r-- | tests/device.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/device.rs b/tests/device.rs index f2a7031..070f3c1 100644 --- a/tests/device.rs +++ b/tests/device.rs @@ -1,4 +1,4 @@ -// Copyright (C) 2018-2019 Robin Krahl <robin.krahl@ireas.org> +// Copyright (C) 2018-2020 Robin Krahl <robin.krahl@ireas.org> // SPDX-License-Identifier: MIT mod util; @@ -640,6 +640,14 @@ fn clear_new_sd_card_warning(device: Storage) { } #[test_device] +fn get_sd_card_usage(device: Storage) { + let range = unwrap_ok!(device.get_sd_card_usage()); + + assert!(range.end >= range.start); + assert!(range.end <= 100); +} + +#[test_device] fn export_firmware(device: Storage) { let mut device = device; assert_cmd_err!( |