Esempio n. 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
Esempio n. 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
Esempio n. 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
Esempio n. 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