# -*- coding: utf-8 -*-

import pytest

from tennis import TennisGame2
from tennis_unittest import test_cases, play_game


class TestTennis:

    @pytest.mark.parametrize('p1Points p2Points score p1Name p2Name'.split(), test_cases)
    def test_get_score_game2(self, p1Points, p2Points, score, p1Name, p2Name):
        game = play_game(TennisGame2, p1Points, p2Points, p1Name, p2Name)
        assert score == game.score()
