def test002_simple_display_data(self): presenter.SourcePlugin.dpy=gen_test_dpy() presenter.SourcePlugin.dpy_updated=True self.assertTrue(presenter._update_display()) self.assertTrue(presenter._get_slide("next")) current=presenter._state.current_slide for i in xrange(13): self.assertTrue(presenter._get_slide("next")) for i in xrange(13): self.assertTrue(presenter._get_slide("previous")) self.assertTrue(current==presenter._state.current_slide)
def test002_simple_display_data(self): presenter.SourcePlugin.dpy = gen_test_dpy() presenter.SourcePlugin.dpy_updated = True self.assertTrue(presenter._update_display()) self.assertTrue(presenter._get_slide("next")) current = presenter._state.current_slide for i in xrange(13): self.assertTrue(presenter._get_slide("next")) for i in xrange(13): self.assertTrue(presenter._get_slide("previous")) self.assertTrue(current == presenter._state.current_slide)
def test001_empty_start(self): self.assertTrue(presenter._get_slide("next")) self.assertTrue(presenter._get_slide("previous"))