@cmd
def test_by_name():
 try:
  print sys.argv
  name = sys.argv[2]
 except IndexError:
  sys.exit('second arg missing')
 install()
 sh(('%s -m unittest -v %s' % (PYTHON, name)))

@ cmd def test_by_name ( ) : try : print sys . argv name = sys . argv [ 2 ] except IndexError : sys . exit ( 'second arg missing' ) install ( ) sh ( ( '%s -m unittest -v %s' % ( PYTHON , name ) ) )
run test by name .