2021-04-05 16:04:40 +00:00
|
|
|
import subprocess
|
|
|
|
|
|
|
|
|
|
|
|
def test_smometest():
|
2024-12-21 10:52:26 +00:00
|
|
|
amqtt_path = "amqtt"
|
2025-01-12 19:52:50 +00:00
|
|
|
output = subprocess.check_output([amqtt_path, "--help"])
|
2021-04-05 16:04:40 +00:00
|
|
|
assert b"Usage" in output
|
|
|
|
assert b"aMQTT" in output
|
|
|
|
|
2024-12-21 10:52:26 +00:00
|
|
|
amqtt_sub_path = "amqtt_sub"
|
2025-01-12 19:52:50 +00:00
|
|
|
output = subprocess.check_output([amqtt_sub_path, "--help"])
|
2021-04-05 16:04:40 +00:00
|
|
|
assert b"Usage" in output
|
|
|
|
assert b"amqtt_sub" in output
|
|
|
|
|
2024-12-21 10:52:26 +00:00
|
|
|
amqtt_pub_path = "amqtt_pub"
|
2025-01-12 19:52:50 +00:00
|
|
|
output = subprocess.check_output([amqtt_pub_path, "--help"])
|
2021-04-05 16:04:40 +00:00
|
|
|
assert b"Usage" in output
|
|
|
|
assert b"amqtt_pub" in output
|