def test_winner_2(): l1 = ['10clubs', '9clubs', '8clubs', '7clubs', '6clubs'] l2 = [ 'queenclubs', 'queenhearts', 'queenspades', 'queendiamonds', '5clubs' ] assert session6.poker_game(l1, l2) == 'Player 1 won the match Straight flush'
def test_winner_4(): l1 = [ 'queenclubs', 'queenhearts', 'queenspades', 'queendiamonds', '5clubs' ] l2 = ['acehearts', 'acespades', 'acediamonds', 'kingspades', 'kinghearts'] assert session6.poker_game(l1, l2) == 'Player 1 won the match four of a kind'
def test_winner_19(): l1 = [ 'queenclubs', 'queenhearts', 'queenspades', 'queendiamonds', '5clubs' ] l2 = ['jackdiamonds', 'jackspades', '9spades', '9diamonds', '5clubs'] assert session6.poker_game(l1, l2) == 'Player 1 won the match four of a kind'
def test_winner_7(): l1 = ['kinghearts', 'kingspades', '9diamonds', '8spades', '4hearts'] l2 = ['acehearts', 'queenclubs', '6hearts', '4spades', '2diamonds'] assert session6.poker_game(l1, l2) == 'Player 1 won the match One pair'
def test_winner_6(): l1 = ['8hearts', '6hearts', '4hearts', '2hearts'] l2 = ['acespades', 'acediamonds', 'kingspades', 'kinghearts'] assert session6.poker_game(l1, l2) == 'Player 2 won the match full house'
def test_winner_1(): l1 = ['acehearts', 'kinghearts', 'queenhearts', 'jackhearts', '10hearts'] l2 = ['acehearts', 'acespades', 'acediamonds', 'kingspades', 'kinghearts'] assert session6.poker_game(l1, l2) == 'Player 1 won the match Royal Flush'
def test_same_cards_2(): l2 = ['queenhearts', 'jackhearts', 'queenhearts', 'jackhearts'] l1 = ['queenhearts', 'jackhearts', 'queenhearts', 'jackhearts'] assert session6.poker_game(l1, l2) == 'Won Equal points, DRAW MATCH!!'
def test_poker_game_length_6(): l2 = ['acehearts', 'kinghearts', 'queenhearts', 'jackhearts', 'kingspades'] l1 = ['acehearts'] with pytest.raises(ValueError): session6.poker_game(l1, l2)
def test_poker_game_length_5(): l2 = ['acehearts', 'kinghearts'] l1 = ['acehearts', 'acespades', 'acediamonds', 'kingspades'] with pytest.raises(ValueError): session6.poker_game(l1, l2)
def test_poker_game_length_4(): l2 = [] l1 = ['acehearts', 'acespades'] with pytest.raises(ValueError): session6.poker_game(l1, l2)
def test_winner_18(): l1 = ['acehearts', '4spades', '2diamonds'] l2 = ['jackdiamonds', '9diamonds', '5clubs'] assert session6.poker_game(l1, l2) == 'Player 2 won the match Two pair'
def test_winner_15(): l1 = ['acehearts', 'acespades', 'kinghearts'] l2 = ['kinghearts', '8hearts', '6hearts'] assert session6.poker_game(l1, l2) == 'Player 1 won the match full house'
def test_winner_12(): l2 = ['8hearts', '7clubs', '6diamonds', '5spades', '4hearts'] l1 = ['queenclubs', 'queenhearts', 'queenspades', '7hearts', '2clubs'] assert session6.poker_game(l1, l2) == 'Player 2 won the match Straight'