forked from nasa/fprime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_cmd_dispatcher.py
More file actions
22 lines (11 loc) · 885 Bytes
/
test_cmd_dispatcher.py
File metadata and controls
22 lines (11 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
""" test_cmd_dispatcher.py:
Test the command dispatcher with basic integration tests.
"""
def test_send_command(fprime_test_api):
"""Test that commands may be sent
Tests command send, dispatch, and receipt using send_and_assert command with a pair of CmdDispatcher commands.
"""
fprime_test_api.send_and_assert_command(fprime_test_api.get_mnemonic('Svc.CommandDispatcher') + '.' + 'CMD_NO_OP', max_delay=1)
fprime_test_api.send_and_assert_command(fprime_test_api.get_mnemonic('Svc.CommandDispatcher') + '.' + 'CMD_CLEAR_TRACKING', max_delay=1)
fprime_test_api.send_and_assert_command(fprime_test_api.get_mnemonic('Svc.CommandDispatcher') + '.' + 'CMD_NO_OP_STRING',["test_string_2"], max_delay=1)
fprime_test_api.send_and_assert_command(fprime_test_api.get_mnemonic('Svc.CommandDispatcher') + '.' + 'CMD_TEST_CMD_1',[2,3,4], max_delay=1)