Example #1
0
	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
Example #2
0
 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
Example #3
0
	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
Example #4
0
 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