def test_brokenstairs(self): P = Player("Hello", 1, ROWS - 2, COLS, 1, 0) newb = Board() array = [] pathexists = False testofthree = False numofcoins = 0 while True: pathexists, numofcoins, testofthree = newb.init(COLS, ROWS, array, P) if pathexists == True: break assert newb.brokenstairs() == True