def testGoodCommand(self): out = StringIO() sys.stdout = out hallie.parse("play") output = out.getvalue().strip() assert "I'm sorry, I don't understand that command" not in output
def testBadCommand(self): out = StringIO() sys.stdout = out hallie.parse("asdfjlasdhfjlasjdf") output = out.getvalue().strip() assert "I'm sorry, I don't understand that command" in output