def test_auction_bid_tell(comment, bid_message): input_line = parse.LogLine(bid_message) result = parse.auction_bid(input_line, DEFAULT_ITEMS)[1] assert result is not None assert result['item_name'] == 'Singing Steel Breastplate' assert result['player_name'] == 'Playertwo' assert result['value'] == 55 assert result['action'] == 'BID'
def test_auction_bid_alt(comment, bid_message, expect_alt): """ check that we correctly interpret an alt message""" input_line = parse.LogLine(bid_message) result = parse.auction_bid(input_line, DEFAULT_ITEMS)[1] assert result is not None assert result['is_alt'] == expect_alt