def test_stakeOCEAN(alice_agent: BaseAgent, alice_pool): OCEAN_before:float = alice_agent.OCEAN() BPT_before:float = alice_agent.BPT(alice_pool) alice_agent.stakeOCEAN(OCEAN_stake=20.0, pool=alice_pool) OCEAN_after:float = alice_agent.OCEAN() BPT_after:float = alice_agent.BPT(alice_pool) assert OCEAN_after == (OCEAN_before - 20.0) assert BPT_after > BPT_before
def test_BPT(alice_agent: BaseAgent, alice_pool: bpool.BPool): assert alice_agent.BPT(alice_pool) == 100.0