Example #1
0
class ViewTest(unittest.TestCase):

    def setUp(self):
        self.window = ConwayWindow()
        

    def testTransformationWindowCoordinatesToIndex(self):
        x = 3
        y = 9
        index = self.window.getIndex(x, y)
        self.assertEquals(0, index)
        
    def testTransformationWindowCoordinatesToIndexLastItemInARow(self):
        x = 8
        y = 475
        index = self.window.getIndex(x, y)
        self.assertEquals(47, index)
Example #2
0
 def setUp(self):
     self.window = ConwayWindow()