예제 #1
0
 def test_deposit_unknown_failure(self):
     client = Client(PRIVATE_KEY_1, node=LOCAL_NODE)
     with pytest.raises(ValueError) as error:
         client.deposit(market=consts.MARKET_INVALID, wei=1000)
     assert 'Invalid market number' in str(error.value)
예제 #2
0
 def test_deposit_dai_success(self):
     client = Client(PRIVATE_KEY_1, node=LOCAL_NODE)
     tx_hash = client.deposit(market=consts.MARKET_DAI, wei=1000)
     self._validate_tx_hash(client, tx_hash)