Ejemplo n.º 1
0
def test_full_house_vs_high_card():
    a = random.sample(full_house, num_cards)
    b = random.sample(high_card, num_cards)
    assert main.return_winner(a, b) == a, 'full house beats a high_card'
Ejemplo n.º 2
0
def test_royal_flush_vs_flush():
    a = random.sample(royal_flush, num_cards)
    b = random.sample(flush, num_cards)
    assert main.return_winner(a, b) == a, 'Royal flush beats a flush'
Ejemplo n.º 3
0
def test_full_house_vs_one_pair():
    a = random.sample(full_house, num_cards)
    b = random.sample(one_pair, num_cards)
    assert main.return_winner(a, b) == a, 'full house beats a one_pair'
Ejemplo n.º 4
0
def test_straight_vs_high_card():
    a = random.sample(straight, num_cards)
    b = random.sample(high_card, num_cards)
    assert main.return_winner(a, b) == a, 'straight beats a high_card'
Ejemplo n.º 5
0
def test_three_kind_vs_high_card():
    a = random.sample(three_kind, num_cards)
    b = random.sample(high_card, num_cards)
    assert main.return_winner(a, b) == a, 'three of a kind beats a high_card'
Ejemplo n.º 6
0
def test_flush_vs_one_pair():
    a = random.sample(flush, num_cards)
    b = random.sample(one_pair, num_cards)
    assert main.return_winner(a, b) == a, 'flush beats a one_pair'
Ejemplo n.º 7
0
def test_straight_vs_three_kind():
    a = random.sample(straight, 5)
    b = random.sample(three_kind, 5)
    assert main.return_winner(a, b) == a, 'straight beats a three_kind'
Ejemplo n.º 8
0
def test_four_kind_vs_straight():
    a = random.sample(four_kind, num_cards)
    b = random.sample(straight, num_cards)
    assert main.return_winner(a, b) == a, 'four kind beats a straight'
Ejemplo n.º 9
0
def test_four_kind_vs_three_kind():
    a = random.sample(four_kind, 5)
    b = random.sample(three_kind, 5)
    assert main.return_winner(a, b) == a, 'four kind beats a three_kind'
Ejemplo n.º 10
0
def test_four_kind_vs_full_house():
    a = random.sample(four_kind, num_cards)
    b = random.sample(full_house, num_cards)
    assert main.return_winner(a, b) == a, 'four kind beats a full house'
Ejemplo n.º 11
0
def test_four_kind_vs_flush():
    a = random.sample(four_kind, num_cards)
    b = random.sample(flush, num_cards)
    assert main.return_winner(a, b) == a, 'four kind beats a flush'
Ejemplo n.º 12
0
def test_straight_flush_vs_full_house():
    a = random.sample(straight_flush, num_cards)
    b = random.sample(full_house, num_cards)
    assert main.return_winner(a, b) == a, 'straight flush beats a full house'
Ejemplo n.º 13
0
def test_straight_flush_vs_four_kind():
    a = random.sample(straight_flush, num_cards)
    b = random.sample(four_kind, num_cards)
    assert main.return_winner(a, b) == a, 'straight flush beats four of a kind'
Ejemplo n.º 14
0
def test_royal_flush_vs_three_kind():
    a = random.sample(royal_flush, num_cards)
    b = random.sample(three_kind, num_cards)
    assert main.return_winner(a, b) == a, 'Royal flush beats a three_kind'
Ejemplo n.º 15
0
def test_flush_vs_straight():
    a = random.sample(flush, num_cards)
    b = random.sample(straight, num_cards)
    assert main.return_winner(a, b) == a, 'flush beats a straight'
Ejemplo n.º 16
0
def test_four_kind_vs_one_pair():
    a = random.sample(four_kind, num_cards)
    b = random.sample(one_pair, num_cards)
    assert main.return_winner(a, b) == a, 'four kind beats a one_pair'
Ejemplo n.º 17
0
def test_flush_vs_three_kind():
    a = random.sample(flush, 5)
    b = random.sample(three_kind, 5)
    assert main.return_winner(a, b) == a, 'flush beats a three_kind'
Ejemplo n.º 18
0
def test_four_kind_vs_high_card():
    a = random.sample(four_kind, num_cards)
    b = random.sample(high_card, num_cards)
    assert main.return_winner(a, b) == a, 'four kind beats a high_card'
Ejemplo n.º 19
0
def test_flush_vs_high_card():
    a = random.sample(flush, num_cards)
    b = random.sample(high_card, num_cards)
    assert main.return_winner(a, b) == a, 'flush beats a high_card'
Ejemplo n.º 20
0
def test_full_house_vs_flush():
    a = random.sample(full_house, num_cards)
    b = random.sample(flush, num_cards)
    assert main.return_winner(a, b) == a, 'full house beats a flush'
Ejemplo n.º 21
0
def test_straight_vs_one_pair():
    a = random.sample(straight, num_cards)
    b = random.sample(one_pair, num_cards)
    assert main.return_winner(a, b) == a, 'straight beats a one_pair'
Ejemplo n.º 22
0
def test_full_house_vs_straight():
    a = random.sample(full_house, num_cards)
    b = random.sample(straight, num_cards)
    assert main.return_winner(a, b) == a, 'full house beats a straight'
Ejemplo n.º 23
0
def test_three_kind_vs_one_pair():
    a = random.sample(three_kind, num_cards)
    b = random.sample(one_pair, num_cards)
    assert main.return_winner(a, b) == a, 'three of a kind beats a one_pair'
Ejemplo n.º 24
0
def test_full_house_vs_three_kind():
    a = random.sample(full_house, 5)
    b = random.sample(three_kind, 5)
    assert main.return_winner(a, b) == a, 'full house beats a three_kind'
Ejemplo n.º 25
0
def test_one_pair_vs_high_card():
    a = random.sample(one_pair, num_cards)
    b = random.sample(high_card, num_cards)
    assert main.return_winner(a, b) == a, 'one pair beats a high_card'
Ejemplo n.º 26
0
def test_royal_flush_vs_four_kind():
    a = random.sample(royal_flush, num_cards)
    b = random.sample(four_kind, num_cards)
    assert main.return_winner(a, b) == a, 'Royal flush beats four of a kind'