Ticket #3096: testcase.py

File testcase.py, 364 bytes (added by niemeyer, 7 years ago)

Test case

Line 
1from twisted.internet.glib2reactor import install
2install()
3from twisted.internet.utils import getProcessOutput
4from twisted.internet import reactor
5
6
7def main():
8    def print_output(output):
9        print output
10    result = getProcessOutput("/bin/ls", args=["/"])
11    result.addCallback(print_output)
12    reactor.run()
13
14
15if __name__ == "__main__":
16    main()
17
18