def test_valid_one(self): expectedIndex = 2 actualIndex = opponentRandom(self.board) self.assertEquals(expectedIndex, actualIndex)
def test_valid_non_existant(self): expectedIndex = -1 actualIndex = opponentRandom(['x', 'y']) self.assertEquals(expectedIndex, actualIndex)