Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 3
0
def test_market_participants_no_market():
    market_list = MarketList()
    assert market_list.has_market('no_market') == False
Ejemplo n.º 4
0
def test_market_participants_no_market():
    market_list = MarketList()
    assert market_list.has_market('no_market') == False