|
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 | |
|---|
| 1 | from entities import Wallet, IssuerEntity |
|---|
| 2 | from transports import ServerTestTransport, ClientTest |
|---|
| 3 | import tests |
|---|
| 4 | walletA = Wallet() |
|---|
| 5 | walletA.coins = [tests.coinB] |
|---|
| 6 | |
|---|
| 7 | walletB = Wallet() |
|---|
| 8 | ie = tests.makeIssuerEntity() |
|---|
| 9 | t = ClientTest(walletB.listen, |
|---|
| 10 | clientnick='walletA', |
|---|
| 11 | autocontinue=1, |
|---|
| 12 | autoprint='json', |
|---|
| 13 | servernick='walletB') |
|---|
| 14 | t2 = 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 |
|---|
| 21 | walletB.addIssuerTransport(location=ie.issuer.getCDD().issuer_service_location, transport=t2) |
|---|
| 22 | walletB.setCurrentCDD(ie.issuer.getCDD()) |
|---|
| 23 | |
|---|
| 24 | walletA.sendCoins(t,amount=1,target='a book') |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | |
|---|
| 28 | |
|---|