Esempio n. 1
0
 def test_representation(self):
     ForLoop = ForLoopWithFakeParent
     assert_equal(
         ForLoop(['${var}', 'IN', 'value1', 'value2']).as_list(),
         ['FOR', '${var}', 'IN', 'value1', 'value2'])
     assert_equal(
         ForLoop(['${v2}', '${v2}', 'IN RANGE', '100']).as_list(),
         ['FOR', '${v2}', '${v2}', 'IN RANGE', '100'])
Esempio n. 2
0
 def __init__(self, cells, first_cell=':FOR', comment=None):
     self._cells = cells
     self._first_cell = first_cell
     ForLoop.__init__(self, cells, comment)
Esempio n. 3
0
 def __init__(self, cells, first_cell=':FOR', comment=None):
     self._cells = cells
     self._first_cell = first_cell
     ForLoop.__init__(self, cells, comment)
Esempio n. 4
0
 def __init__(self, *args, **kws):
     ForLoop.__init__(self, self, *args, **kws)
 def __init__(self, *args, **kws):
     ForLoop.__init__(self, self, *args, **kws)
Esempio n. 6
0
 def __init__(self, cells, first_cell=':FOR'):
     self._cells = cells
     self._first_cell = first_cell
     ForLoop.__init__(self, cells)