2009-03-10 00:01:58 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
2009-03-11 15:42:49 +01:00
|
|
|
import PokerStarsToFpdb
|
2009-03-10 00:01:58 +01:00
|
|
|
import py
|
|
|
|
|
|
|
|
|
|
|
|
def checkGameInfo(hhc, header, info):
|
|
|
|
assert hhc.determineGameType(header) == info
|
|
|
|
|
|
|
|
def testGameInfo():
|
2009-03-11 15:42:49 +01:00
|
|
|
hhc = PokerStarsToFpdb.PokerStars(autostart=False)
|
2009-03-10 00:01:58 +01:00
|
|
|
pairs = (
|
|
|
|
(u"PokerStars Game #20461877044: Hold'em No Limit ($1/$2) - 2008/09/16 18:58:01 ET",
|
2009-03-11 15:42:49 +01:00
|
|
|
{'type':'ring', 'base':"hold", 'category':'holdem', 'limitType':'nl', 'sb':'1', 'bb':'2', 'currency':'USD'}),
|
|
|
|
|
|
|
|
(u"PokerStars Game #5999635897: HORSE (Omaha Hi/Lo Limit, $2/$4) - 2006/08/21 - 13:59:19 (ET)",
|
|
|
|
{'type':'ring', 'base':'hold', 'category':'omahahilo', 'limitType':'fl', 'sb':'2', 'bb':'4','currency':'USD'})
|
2009-03-10 00:01:58 +01:00
|
|
|
)
|
|
|
|
for (header, info) in pairs:
|
|
|
|
yield checkGameInfo, hhc, header, info
|
|
|
|
|