def test_framedisplayed_in_animate(): """ Test isFrameDisplayed value in case of animate """ p = PlotRedirection() l = Lsystem() l.set(lcode) l.context()['animation'] = True l.animate()
def test_endeach_with_return_none(): """ Test use of EndEach with return of none for scene""" p = PlotRedirection() l = Lsystem() l.set(lcodeH5+lcodeH) l.context()['nbWantedH'] = 3 # suppose to recompute scene l.animate() l.context()['check']()
def test_endeach_with_return_scene(): """ Test use of EndEach with return of one scene argument """ p = PlotRedirection() l = Lsystem() l.set(lcodeH3+lcodeH) l.context()['nbWantedH'] = 2 # suppose to reuse the scene l.animate() l.context()['check']()
def test_endeach_with_no_return(): """ Test use of EndEach with no return """ p = PlotRedirection() l = Lsystem() l.set(lcodeH4+lcodeH) l.context()['nbWantedH'] = 2 # suppose to reuse the scene l.animate() l.context()['check']()
def test_endeach_with_return_lstring(): """ Test use of EndEach with return of one lstring argument """ p = PlotRedirection() l = Lsystem() l.set(lcodeH2+lcodeH) l.context()['nbWantedH'] = 3 # should recompute the scene l.animate() l.context()['check']()