Пример #1
0
def test_two_pairs_3():
    testhand = [p.Card(2, 3), p.Card(1, 2), \
       p.Card(2, 1), p.Card(1, 0), \
       p.Card(2, 0)]

    dict = p.buildDict(testhand)

    assert not p.hasTwoPairs(dict)
Пример #2
0
def test_ThreeOfAKind_3():

    testhand = [p.Card(2, 3), p.Card(1, 2), \
       p.Card(2, 1), p.Card(13, 2), \
       p.Card(4, 0)]

    dict = p.buildDict(testhand)

    assert not p.hasThreeOfAKind(dict)
Пример #3
0
def test_FullHouse_3():

    testhand = [p.Card(12, 3), p.Card(1, 2), \
       p.Card(12, 1), p.Card(1, 0), \
       p.Card(1, 0)]

    dict = p.buildDict(testhand)

    assert p.hasFullHouse(dict)
Пример #4
0
def test_one_pair_3():

    testhand = [p.Card(2, 3), p.Card(1, 2), \
       p.Card(2, 1), p.Card(13, 2), \
       p.Card(13, 0)]

    dict = p.buildDict(testhand)

    assert not p.hasOnePair(dict)
Пример #5
0
def test_FourOfAKind_3():

    testhand = [p.Card(12, 3), p.Card(1, 2), \
       p.Card(12, 1), p.Card(12, 2), \
       p.Card(12, 0)]

    dict = p.buildDict(testhand)

    assert p.hasFourOfAKind(dict)