Commits

Jason R. Coombs committed b4b890c

Restored excuses, now implemented as a pmxbot plugin

Comments (0)

Files changed (2)

 	),
 	install_requires=[
 		"popquotes>=1.0.1",
+		"excuses>=1.0",
 		"pyyaml",
 		"python-irclib>=0.4.8",
 		"httplib2",

tests/unit/test_commands.py

 		invalid_query = 'sp|en que no desea la nueva pregunta'
 		res = pmxbot.translate(c, e, '#test', 'testrunner', query)
 
+	def test_excuse(self):
+		import excuses
+		gen = excuses.RandomExcuseGenerator.create_local()
+		gen.pmxbot_excuse(c, e, '#test', 'testrunner', '')
+
 	def test_popquotes(self):
 		popquotes.pmxbot.install_commands()
 		res = popquotes.pmxbot.bender(c, e, '#test', 'testrunner', '')