root / trunk / pyopencoin / oc / nilstest.py

Revision 232, 0.8 kB (checked in by ocmathew, 4 years ago)

Clean up interfaces
Added Issuer.resumeTransaction which returns what Mint.getBlinds returns for now, but will be used to get the current state of a transaction as the storing by transaction_id moves from the Mint to the Issuer
Document dead code branch at Wallet.finishTransfer(). This probably means wallets don't do anything right now

  • Property svn:mime-type set to text/plain
  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1from entities import Wallet, IssuerEntity
2from transports import ServerTestTransport, ClientTest
3import tests
4walletA = Wallet()
5walletA.coins = [tests.coinB]
6
7walletB = Wallet()
8ie = tests.makeIssuerEntity()
9t = ClientTest(walletB.listen,
10                clientnick='walletA',
11                autocontinue=1,
12                autoprint='json',
13                servernick='walletB')
14t2 = ClientTest(ie.issuer.listen,
15                clientnick='walletB',
16                autocontinue=1,
17                autoprint='json',
18                servernick='issuer')
19
20# setup things for walletB to be able to perform connection with issuer
21walletB.addIssuerTransport(location=ie.issuer.getCDD().issuer_service_location, transport=t2)
22walletB.setCurrentCDD(ie.issuer.getCDD())
23
24walletA.sendCoins(t,amount=1,target='a book')
25
26
27
28
Note: See TracBrowser for help on using the browser.