[lang-ref] ( get_command_standard_output ) ( python )

def test_get_command_standard_output():
    # subprocess.run()

    r = subprocess.run(['echo', 'aaa'], capture_output=True, text=True)
    assert r.stdout.rstrip() == 'aaa'