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)
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)