예제 #1
0
	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)
예제 #2
0
    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)
예제 #3
0
	def test001_empty_start(self):
		self.assertTrue(presenter._get_slide("next"))
		self.assertTrue(presenter._get_slide("previous"))
예제 #4
0
 def test001_empty_start(self):
     self.assertTrue(presenter._get_slide("next"))
     self.assertTrue(presenter._get_slide("previous"))