Example #1
0
def test_market_participants_has_market():
    market_list = MarketList()
    market_name = 'test_market'
    seller_participant = MarketParticipant(SELLER, 'agent_id')
    market_list.make_reservation(market_name, seller_participant)
    assert market_list.has_market(market_name) == True
Example #2
0
def test_market_participants_has_market():
    market_list = MarketList()
    market_name = 'test_market'
    seller_participant = MarketParticipant(SELLER, 'agent_id')
    market_list.make_reservation(market_name, seller_participant)
    assert market_list.has_market(market_name) == True
Example #3
0
def test_market_participants_no_market():
    market_list = MarketList()
    assert market_list.has_market('no_market') == False
Example #4
0
def test_market_participants_no_market():
    market_list = MarketList()
    assert market_list.has_market('no_market') == False