Ejemplo n.º 1
0
 def test_init_fillRowOnePassEmpty(self):
     testrow2 = Row([0], "00000")
     testrow2.fillRowOnePass()
     self.assertEqual(testrow2.rowContent, [1, 1, 1, 1, 1])
Ejemplo n.º 2
0
 def test_init_fillRowOnePassMiscSize(self):
     testrow3 = Row([1, 6, 1], "0000000000")
     testrow3.fillRowOnePass()
     self.assertEqual(testrow3.rowContent, [2, 1, 2, 2, 2, 2, 2, 2, 1, 2])
Ejemplo n.º 3
0
 def test_init_fillRowOnePassFull(self):
     testrow = Row([5], "00000")
     testrow.fillRowOnePass()
     self.assertEqual(testrow.rowContent, [2, 2, 2, 2, 2])