Esempio n. 1
0
def test_more_than_5_cards():
    with pytest.raises(ValueError) as e_info:
        _ = session6.get_hands_and_winner(6)
Esempio n. 2
0
def test_royal_flush4():    
    with pytest.raises(ValueError) as e_info:
        h1, h2 = session6.get_hands_and_winner(4, solo=True)
        h1_v, h1_s = session6.card_split(h1)
        _ = session6.royal_flush(h1_v, h1_s)
Esempio n. 3
0
def test_four_of_a_kind():    
    with pytest.raises(ValueError) as e_info:
        h1, h2 = session6.get_hands_and_winner(3, solo=True)
        h1_v, _ = session6.card_split(h1)
        _ = session6.four_of_a_kind(h1_v)
Esempio n. 4
0
def test_full_house4():    
    with pytest.raises(ValueError) as e_info:
        h1, h2 = session6.get_hands_and_winner(4, solo=True)
        h1_v, h1_s = session6.card_split(h1)
        _ = session6.full_house(h1_v, h1_s)
Esempio n. 5
0
def test_two_pair():    
    with pytest.raises(ValueError) as e_info:
        h1, h2 = session6.get_hands_and_winner(3, solo=True)
        h1_v, _ = session6.card_split(h1)
        _ = session6.two_pair(h1_v)
Esempio n. 6
0
def test_less_than_three_cards():    
    with pytest.raises(ValueError) as e_info:
        _ = session6.get_hands_and_winner(2)