def test24(self): """rejects a height of 24, and then accepts a height of 2""" self.spawn("./mario").stdin("24").reject()\ .stdin("2").stdout(File("outputs/mario/less/2.txt")).exit(0)
def test1(self): """handles a height of 1 correctly""" self.spawn("./mario").stdin("1").stdout( File("outputs/mario/less/1.txt")).exit(0)
def test23(self): """handles a height of 23 correctly""" self.spawn("./mario").stdin("23").stdout( File("outputs/mario/less/23.txt")).exit(0)
def test2(self): """handles a height of 2 correctly""" self.spawn("./mario").stdin("2").stdout( File("outputs/mario/more/2.txt")).exit(0)