Beispiel #1
0
 def test(self):
     """
     Test various inputs and see that they are correct.
     """
     self.assertEquals(misc._alignData(100, 100), (4, 25, 25))
     self.assertEquals(misc._alignData(512, 512), (512, 1, 1))
     self.assertEquals(misc._alignData(1, 1024), (1, 1, 1024))
     self.assertEquals(misc._alignData(10240, 512), (512, 20, 1))
     self.assertEquals(misc._alignData(1, 1), (1, 1, 1))
Beispiel #2
0
 def test(self):
     """
     Test various inputs and see that they are correct.
     """
     self.assertEquals(misc._alignData(100, 100), (4, 25, 25))
     self.assertEquals(misc._alignData(512, 512), (512, 1, 1))
     self.assertEquals(misc._alignData(1, 1024), (1, 1, 1024))
     self.assertEquals(misc._alignData(10240, 512), (512, 20, 1))
     self.assertEquals(misc._alignData(1, 1), (1, 1, 1))