#!/usr/bin/env python # # Run the tests for the postman package import os, shutil, sys, unittest try: from postman.tests import * except ImportError: sys.path.append(os.path.join(os.path.dirname(__file__), '../')) try: from postman.tests import * except ImportError: raise SystemExit('Could not find postman on your filesystem') try: unittest.main() finally: # FIXME: hardcoded path to the tmp directory, we should read this path # from postman/tests/postman.conf shutil.rmtree('/tmp/postman-tests')