agent0.ethpy.hyperdrive.interface.read_interface_test
Tests for hyperdrive_read_interface.py.
Classes
Tests for the HyperdriveReadInterface api class. |
Module Contents
- class agent0.ethpy.hyperdrive.interface.read_interface_test.TestHyperdriveReadInterface
Tests for the HyperdriveReadInterface api class.
- test_pool_config(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface)
Checks that the Hyperdrive pool_config matches what is returned from the smart contract.
- test_pool_config_deployed(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface)
Checks that the Hyperdrive pool_config matches what is returned from the smart contract.
- test_pool_info(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface)
Checks that the Hyperdrive pool_info matches what is returned from the smart contract.
- test_checkpoint(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface)
Checks that the Hyperdrive checkpoint matches what is returned from the smart contract.
- test_spot_price_and_fixed_rate(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface)
Checks that the Hyperdrive spot price and fixed rate match computing it by hand.
- test_calc_long(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface)
Test various fns associated with long trades.
- test_calc_short(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface)
Test various fns associated with short trades.
- test_misc(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface)
Miscellaneous tests only verify that the attributes exist and functions can be called.
- test_deployed_fixed_rate(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface)
Check that the bonds calculated actually hit the target rate.
Check that the bonds calculated actually hit the target rate.
- test_deployed_values(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface)
Test the hyperdrive interface versus expected values.
- test_long_short_total_supply(fast_chain_fixture: agent0.LocalChain)