#!/usr/bin/python
import optparse
import sys
# Install the Python unittest2 package before you run this script.
import unittest2

USAGE = """%prog SDK_PATH
Run unit tests for App Engine apps.
The SDK Path is probably /usr/local/google_appengine on Mac OS

SDK_PATH    Path to the SDK installation
TEST_PATH   Path to package containing test modules"""


def main(sdk_path, test_path):
    sys.path.insert(0, sdk_path)
    import dev_appserver
    dev_appserver.fix_sys_path()
    suite = unittest2.loader.TestLoader().discover(test_path)
    unittest2.TextTestRunner(verbosity=2).run(suite)


if __name__ == '__main__':
    parser = optparse.OptionParser(USAGE)
    options, args = parser.parse_args()
    if len(args) != 2:
        print 'Error: Exactly 2 arguments required.'
        parser.print_help()
        sys.exit(1)
    SDK_PATH = args[0]
    TEST_PATH = "tests"
    main(SDK_PATH, TEST_PATH)
@@ -293,60 +293,8 @@
 tion
-%0ATEST_PATH   Path to package containing test modules
 %22%22%22%0A
@@ -663,17 +663,17 @@
 rgs) != 
-2
+1
 :%0A      
@@ -696,17 +696,17 @@
 Exactly 
-2
+1
  argumen
@@ -706,17 +706,16 @@
 argument
-s
  require

Fix test runner to accept 1 arg