message: simple test code pass through
diff: @@ -8,7 +8,7 @@ print('please make sure you are running the following command before test')
  print('./pyeos/pyeos --manual-gen-block --debug -i')
  def init():
  - psw = 'PW5Kd5tv4var9XCzvQWHZVyBMPjHEXwMjH1V19X67kixwxRpPNM4J'
  + psw = 'PW5KQ5RieLowfi5gX81bQ4zTnHde3ZENpooryxdm4xbdoH6bNW9SZ'
  wallet.open('mywallet')
  wallet.unlock('mywallet', psw)
  @@ -16,8 +16,8 @@ def init():
  key2 = 'EOS5JuNfuZPATy8oPz9KMZV2asKf9m8fb2bSzftvhW55FKQFakzFL'
  with producer:
  - if not eosapi.get_account('hello'):
  - r = eosapi.create_account('inita', 'hello', key1, key2)
  + if not eosapi.get_account('hello').permissions:
  + r = eosapi.create_account('eosio', 'hello', key1, key2)
  assert r
  with producer:
  @@ -27,7 +27,25 @@ def init():
  #eosapi.set_contract('currency', '../../build/contracts/currency/currency.wast', '../../build/contracts/currency/currency.abi',0)
  -def test():
  +def test(name=None):
  with producer:
  - r = eosapi.push_message('hello','sayhello','hello,world',['hello'],{},rawargs=True)
  + if not name:
  + name = 'mike'
  + r = eosapi.push_message('hello','sayhello',name,{'hello':'active'},rawargs=True)
  assert r
  +
  +def test2(count):
  + import time
  + import json
  + functions = []
  + args = []
  + per = {'hello':'active'}
  + for i in range(count):
  + functions.append('sayhello')
  + arg = str(i)
  + args.append(arg)
  + ret, cost = eosapi.push_messages('hello', functions, args, per, True, rawargs=True)
  + assert ret
  + print('total cost time:%.3f s, cost per action: %.3f ms, actions per second: %.3f'%(cost/1e6, cost/count/1000, 1*1e6/(cost/count)))
  + eosapi.produce_block()
  +
  