async def test_single_bid_0_conservative(mock_client): # arrange engine = Microengine(mock_client, bid_strategy=ConservativeStrategy()) # act polyswarmd_addr bid = await engine.bid('test', [True], [True], [0], [''], 'side') # assert assert bid == [.0625 * 10**18]
async def test_conservative_bid_strategy_directly(): # arrange bid_strategy = ConservativeStrategy() # act bid = await bid_strategy.bid('test', [True], [True], [1.0], [''], .0625 * 10 ** 18, 1 * 10 ** 18,'side') # assert assert bid == [.0625 * 10 ** 18]
async def test_file_bid_mask_false_conservative(mock_client): # arrange engine = Microengine(mock_client, bid_strategy=ConservativeStrategy()) # act bid = await engine.bid('test', [False], [True], [1.0], [''], 'side') # assert assert bid == []
async def test_single_file_bid_50_conservative(mock_client): # arrange engine = Microengine(mock_client, bid_strategy=ConservativeStrategy()) # act bid = await engine.bid('test', [True], [True], [.5], [''], 'side') # assert assert bid == .0625 * 10**18