Slide 55
Slide 55 text
Invoking a command line utility
$ python test.py
/bin/sh: stardate: command not found
E
=================================================================
ERROR: test_stardate (__main__.StardateTestCase)
Test that we return the current stardate
-----------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 11, in test_stardate
output = subprocess.check_output("stardate", shell=True)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/
Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line
573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command 'stardate' returned non-zero exit
status 127
-----------------------------------------------------------------
TDD a CLI