Example #1
0
 def test_set_allowance_unknown_failure(self):
     client = Client(PRIVATE_KEY_1, node=LOCAL_NODE)
     with pytest.raises(ValueError) as error:
         client.set_allowance(market=consts.MARKET_INVALID)
     assert 'Invalid market number' in str(error.value)
Example #2
0
 def test_set_allowance_dai_success(self):
     client = Client(PRIVATE_KEY_1, node=LOCAL_NODE)
     tx_hash = client.set_allowance(market=consts.MARKET_DAI)
     self._validate_tx_hash(client, tx_hash)