def testCollidingSums(self): expected_board = [[0, 2, 0], [1, 2, 1], [0, 0, 0]] test_board = Board(3,3) test_board.sum_surrounding(0, 0) test_board.sum_surrounding(2, 0) observed_board = test_board.board self.assertEqual(expected_board, observed_board)
def testLoneCell(self): expected_board = [[1,1,1],[1,0,1],[1,1,1]] test_board = Board(3,3) test_board.sum_surrounding(1,1) observed_board = test_board.board self.assertEqual(expected_board, observed_board)