mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
34 lines
766 B
Python
34 lines
766 B
Python
# Copyright (C) 2020 Freie Universität Berlin
|
|
#
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
# directory for more details.
|
|
|
|
import riotctrl_shell.sys
|
|
|
|
from .common import init_ctrl
|
|
|
|
|
|
def test_help():
|
|
rc = init_ctrl()
|
|
si = riotctrl_shell.sys.Help(rc)
|
|
res = si.help()
|
|
# mock just returns last input
|
|
assert res == "help"
|
|
|
|
|
|
def test_reboot():
|
|
rc = init_ctrl()
|
|
si = riotctrl_shell.sys.Reboot(rc)
|
|
res = si.reboot()
|
|
# mock just returns last input
|
|
assert res == "reboot"
|
|
|
|
|
|
def test_version():
|
|
rc = init_ctrl()
|
|
si = riotctrl_shell.sys.Version(rc)
|
|
res = si.version()
|
|
# mock just returns last input
|
|
assert res == "version"
|