

def testFillup(self):
    'Fillup should work ok.'
    tplt = 'Value Required Col1 ([^-]+)\nValue Fillup Col2 ([^-]+)\nValue Fillup Col3 ([^-]+)\n\nStart\n  ^$Col1 -- -- -> Record\n  ^$Col1 $Col2 -- -> Record\n  ^$Col1 -- $Col3 -> Record\n  ^$Col1 $Col2 $Col3 -> Record\n'
    data = '\n1 -- B1\n2 A2 --\n3 -- B3\n'
    t = textfsm.TextFSM(cStringIO.StringIO(tplt))
    result = t.ParseText(data)
    data.failUnlessEqual("[['1', 'A2', 'B1'], ['2', 'A2', 'B3'], ['3', '', 'B3']]", str(result))

dataset/ETHPy150Open google/textfsm/textfsm_test.py UnitTestFSM.testFillup/VarMisuse@43/199 `self`->`data`