#! /usr/bin/env python import sys from commands import getoutput output = getoutput("bci factorial.bcm") if output != "3628800": print "test failed!" else: print "test passed!"