Show
Ignore:
Timestamp:
03/16/08 21:29:30 (4 years ago)
Author:
ocmathew
Message:

Change handshake options from a dict to key/value lists in a list.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pyopencoin/oc/entities.py

    r197 r215  
    284284        >>> stt = transports.SimpleTestTransport() 
    285285        >>> w.listen(stt) 
    286         >>> stt.send('HANDSHAKE',{'protocol': 'opencoin 1.0'}) 
     286        >>> stt.send('HANDSHAKE',[['protocol', 'opencoin 1.0']]) 
    287287        <Message('HANDSHAKE_ACCEPT',None)> 
    288288        >>> stt.send('sendMoney',[1,2]) 
     
    558558        >>> stt = transports.SimpleTestTransport() 
    559559        >>> i.listen(stt) 
    560         >>> stt.send('HANDSHAKE',{'protocol': 'opencoin 1.0'}) 
     560        >>> stt.send('HANDSHAKE',[['protocol', 'opencoin 1.0']]) 
    561561        <Message('HANDSHAKE_ACCEPT',None)> 
    562562        >>> stt.send('TRANSFER_TOKEN_REQUEST',[tid, 'my account', [], [tests.coinA.toPython()], [['type', 'redeem']]])