def test_cell_click(self):
        """when a cell is clicked, its text should appear 
			in the top_text"""

        controller = Controller(self.grid)

        controller.clickAt((0, 0))
        self.assertEqual("cell content", controller.getTopText())
コード例 #2
0
ファイル: controller_test.py プロジェクト: Tommmster/pytabex
	def test_cell_click(self):
		"""when a cell is clicked, its text should appear 
			in the top_text"""

		controller = Controller(self.grid)

		controller.clickAt((0,0))
		self.assertEqual("cell content",controller.getTopText())
    def test_top_text_edit(self):
        controller = Controller(self.grid)
        controller.clickAt((1, 1))
        controller.writeTopText("A new hope")

        self.assertEqual("A new hope", controller.getCurrentCellContent())
コード例 #4
0
ファイル: controller_test.py プロジェクト: Tommmster/pytabex
	def test_top_text_edit(self):
		controller = Controller(self.grid)
		controller.clickAt((1,1))
		controller.writeTopText("A new hope")

		self.assertEqual("A new hope", controller.getCurrentCellContent())