def test_isVericalWin_Fail(self): """Testing the isVerticalWin method. We put random Yellow and Red pieces in the board. We expect the method to return False and use the assertTrue method to verify our expectations.""" board4 = [' ',' ',' ',' ',' ',' ','R',' ',' ',' ',' ','Y',' ',' ',' ',' ','R',' ',' ',' ',' ','Y','R','R','Y','Y'] result4 = False self.assertTrue(result4 == Win_Logic_Connect4.isVerticalWin(board4,'Y'))
def test_isVericalWin_Passed(self): """Testing the isVerticalWin method. We put four Yellow pieces in the first column of the board list as well as . We expect the method to return True and use the assertEquals method to verify our expectations.""" board3 = [' ',' ',' ',' ',' ',' ','Y',' ',' ',' ',' ','Y',' ',' ',' ',' ','Y',' ',' ',' ',' ','Y','R','R','R',' '] result3 = True self.assertEqual(result3,Win_Logic_Connect4.isVerticalWin(board3,'Y'))