In the "Games" filter, 27_3draw was showing up as 273draw with the 3 underlined....
[fpdb-dooglus.git] / pyfpdb / test_Everleaf.py
blob487efb6a4f94e1ecefdb10581283cadec18671f8
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
4 #Copyright 2009-2011 Matt Turnbull
5 #This program is free software: you can redistribute it and/or modify
6 #it under the terms of the GNU Affero General Public License as published by
7 #the Free Software Foundation, version 3 of the License.
8 #
9 #This program is distributed in the hope that it will be useful,
10 #but WITHOUT ANY WARRANTY; without even the implied warranty of
11 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 #GNU General Public License for more details.
14 #You should have received a copy of the GNU Affero General Public License
15 #along with this program. If not, see <http://www.gnu.org/licenses/>.
16 #In the "official" distribution you can find the license in agpl-3.0.txt.
18 import EverleafToFpdb
19 import py
22 def checkGameInfo(hhc, header, info):
23 assert hhc.determineGameType(header) == info
25 def testGameInfo():
26 hhc = EverleafToFpdb.Everleaf(autostart=False)
27 pairs = (
28 (u"""Everleaf Gaming Game #3732225
29 ***** Hand history for game #3732225 *****
30 Blinds €0.50/ €1 NL Hold'em - 2009/01/11 - 16:09:40
31 Table Casino Lyon Vert 58
32 Seat 3 is the button
33 Total number of players: 6""",
34 {'type':'ring', 'base':"hold", 'category':'holdem', 'limitType':'nl', 'sb':'0.50', 'bb':'1', 'currency':'EUR'}),
36 ("""Everleaf Gaming Game #55198191
37 ***** Hand history for game #55198191 *****
38 Blinds $0.50/$1 NL Hold'em - 2008/09/01 - 10:02:11
39 Table Speed Kuala
40 Seat 8 is the button
41 Total number of players: 10""",
42 {'type':'ring', 'base':"hold", 'category':'holdem', 'limitType':'nl', 'sb':'0.50', 'bb':'1', 'currency':'USD'}),
44 ("""Everleaf Gaming Game #75065769
45 ***** Hand history for game #75065769 *****
46 Blinds 10/20 NL Hold'em - 2009/02/25 - 17:30:32
47 Table 2
48 Seat 1 is the button
49 Total number of players: 10""",
50 {'type':'tour', 'base':"hold", 'category':'holdem', 'limitType':'nl', 'sb':'10', 'bb':'20', 'currency':'T$'}),
52 ("""Everleaf Gaming Game #65087798
53 ***** Hand history for game #65087798 *****
54 $0.25/$0.50 7 Card Stud - 2008/12/05 - 21:46:00
55 Table Plymouth""",
56 {'type':'ring', 'base':'stud', 'category':'studhi', 'limitType':'fl', 'sb':'0.25', 'bb':'0.50', 'currency':'USD'}),
58 ("""Everleaf Gaming Game #65295370
59 ***** Hand history for game #65295370 *****
60 Blinds $0.50/$1 PL Omaha - 2008/12/07 - 21:59:48
61 Table Guanajuato""",
62 {'type':'ring', 'base':'hold', 'category':'omahahi', 'limitType':'pl', 'sb':'0.50', 'bb':'1','currency':'USD'}),
65 for (header, info) in pairs:
66 yield checkGameInfo, hhc, header, info