# Path: tests/helpers.py
# def C(pos):
#     row = int(pos[1]) - 1
#     col = POS[pos[0]]
#     return row, col
# 
# WHITE = 1
# 
# BLACK = -1


import unittest
from .helpers import C, WHITE, BLACK
        from chess.models import Board
        from chess.models import win_pawncapture

class TestWinPawnCature(unittest.TestCase):
    def get_board(self, *args, **kwargs):
        return Board(*args, **kwargs)

    def get_win(self, *args, **kwargs):
        return win_pawncapture(*args, **kwargs)

    def test_complete_nowin(self):
        config = 'r......r' + \
                 'pppppppp' + \
                 '........' + \
                 '........' + \
                 '........' + \
                 '........' + \
                 'PPPPPPPP' + \
                 'R......R' 
        board = self.get_board(config)

        result = self.get_win(board)
        self.assertEqual(result, 0)


# Path: tests/helpers.py
# def C(pos):
#     row = int(pos[1]) - 1
#     col = POS[pos[0]]
#     return row, col
# 
# WHITE = 1
# 
# BLACK = -1


# Path: tests/test_win_pawncapture.py
import unittest
from .helpers import C, WHITE, BLACK
        from chess.models import Board
        from chess.models import win_pawncapture


class TestWinPawnCature(unittest.TestCase):
    def get_board(self, *args, **kwargs):
        return Board(*args, **kwargs)

    def get_win(self, *args, **kwargs):
        return win_pawncapture(*args, **kwargs)

    def test_complete_nowin(self):
        config = 'r......r' + \
                 'pppppppp' + \
                 '........' + \
                 '........' + \
                 '........' + \
                 '........' + \
                 'PPPPPPPP' + \
                 'R......R' 
        board = self.get_board(config)

        result = self.get_win(board)
        self.assertEqual(result, 0)


    def test_single_nowin(self):