

def testError(self):
    tplt = 'Value Required boo (on.)\nValue Filldown,Required hoo (on.)\n\nStart\n  ^$boo -> Continue\n  ^$hoo -> Error'
    t = textfsm.TextFSM(cStringIO.StringIO(tplt))
    data = 'one'
    self.failUnlessRaises(textfsm.TextFSMError, t.ParseText, data)
    tplt = 'Value Required boo (on.)\nValue Filldown,Required hoo (on.)\n\nStart\n  ^$boo -> Continue\n  ^$hoo -> Error "Hello World"'
    t = textfsm.TextFSM(cStringIO.StringIO(tplt))
    self.failUnlessRaises(textfsm.TextFSMError, t.ParseText, data)

dataset/ETHPy150Open google/textfsm/textfsm_test.py UnitTestFSM.testError/original