示例#1
0
from common import test_simple_command

command = 'eyedbadmin2 user delete'
expected_output = ['eyedbadmin user delete \[--help\] USER']
test_simple_command(command, expected_output, expected_status=1)
示例#2
0
from common import test_simple_command
import sys

dbname = 'new_database_test_db'
copy_dbname = 'copy_database_test_db'

command="eyedbadmin2 database copy %s %s" % (dbname, copy_dbname)
test_simple_command( command)
sys.exit( 0)