Exemple #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'])
Exemple #2
0
 def __init__(self, cells, first_cell=':FOR', comment=None):
     self._cells = cells
     self._first_cell = first_cell
     ForLoop.__init__(self, cells, comment)
Exemple #3
0
 def __init__(self, cells, first_cell=':FOR', comment=None):
     self._cells = cells
     self._first_cell = first_cell
     ForLoop.__init__(self, cells, comment)
Exemple #4
0
 def __init__(self, *args, **kws):
     ForLoop.__init__(self, self, *args, **kws)
 def __init__(self, *args, **kws):
     ForLoop.__init__(self, self, *args, **kws)
Exemple #6
0
 def __init__(self, cells, first_cell=':FOR'):
     self._cells = cells
     self._first_cell = first_cell
     ForLoop.__init__(self, cells)