comparison cmd2.py @ 132:e3ea21450237

missing append line was messing up tests
author catherine@Elli.myhome.westell.com
date Wed, 05 Nov 2008 07:37:49 -0500
parents fad4dde06be8
children
comparison
equal deleted inserted replaced
124:fad4dde06be8 132:e3ea21450237
772 lines = [] 772 lines = []
773 for line in s.splitlines(): 773 for line in s.splitlines():
774 line = line.rstrip() 774 line = line.rstrip()
775 if line.startswith(bareprompt): 775 if line.startswith(bareprompt):
776 line = line.replace(bareprompt, '', 1) 776 line = line.replace(bareprompt, '', 1)
777 lines.append(line)
777 return '\n'.join(lines).strip() 778 return '\n'.join(lines).strip()
778 def tearDown(self): 779 def tearDown(self):
779 if self.CmdApp: 780 if self.CmdApp:
780 self.outputTrap.tearDown() 781 self.outputTrap.tearDown()
781 782