Debian Codegraph @

test-crates/hello-world/check_installed/check_installed.py

raw
1 from subprocess import check_output
2
3
4 def main():
5 output = check_output(["hello-world"]).decode("utf-8").strip()
6 if not output == "Hello, world!":
7 raise Exception(output)
8
9 output = check_output(["foo"]).decode("utf-8").strip()
10 if not output == "🦀 Hello, world! 🦀":
11 raise Exception(output)
12 print("SUCCESS")
13
14
15 if __name__ == "__main__":
16 main()