示例#1
0
def test_complete_with_empty_board():
    """
        docstrings should comply to pep257 for every public class
        and method and module function (except from tests)
    """
    board = Board(3, 3)
    assert board.complete([])
示例#2
0
def test_complete_returns_true():
    """ test_complete_returns_true_when_all_pieces_are_in_the_board """

    king = King()
    board = Board(3, 3)
    board.put(king, 0, 0)

    assert board.complete([King()]) is True
示例#3
0
def test_complete_returns_false():
    """ test_complete_returns_false_when_pieces_are_missing"""
    board = Board(3, 3)
    assert board.complete([King()]) is False