skip to navigation
skip to content

cmdtest 0.1.1

Simple testing for command line programs.

cmdtest is a simple way to test command line programs.

from cmdtest import Program, File

cat = Program('cat')

def cat_should_echo_single_file():
    assert cat(File('hello')).out == 'hello'

def cat_should_combine_files():
    assert cat(File('hello'), File('world')).out == 'helloworld'

if __name__ == '__main__':


Available from PyPI with either pip or easy_install:

$ pip install cmdtest
$ easy_install cmdtest

This will also pull in the Attest dependencies.

File Type Py Version Uploaded on Size
cmdtest-0.1.1.tar.gz (md5) Source 2013-05-13 2KB