mylife: remove .mlih

master
mutantmonkey 2014-11-07 20:01:45 -08:00
parent d1ab481f8e
commit 0490ede283
2 changed files with 0 additions and 17 deletions

View File

@ -63,19 +63,6 @@ def mlig(phenny, input):
mlig.commands = ['mlig'] mlig.commands = ['mlig']
def mlih(phenny, input):
""".mlih - My life is ho."""
try:
req = web.get("http://mylifeisho.com/random")
except:
raise GrumbleError("MLIH is giving some dome to some lax bros.")
doc = lxml.html.fromstring(req)
quote = doc.find_class('storycontent')[0][0].text_content()
phenny.say(quote)
mlih.commands = ['mlih']
def mlihp(phenny, input): def mlihp(phenny, input):
""".mlihp - My life is Harry Potter.""" """.mlihp - My life is Harry Potter."""
try: try:

View File

@ -28,10 +28,6 @@ class TestMylife(unittest.TestCase):
mylife.mlib(self.phenny, None) mylife.mlib(self.phenny, None)
assert self.phenny.say.called is True assert self.phenny.say.called is True
def test_mlih(self):
mylife.mlih(self.phenny, None)
assert self.phenny.say.called is True
def test_mlihp(self): def test_mlihp(self):
mylife.mlihp(self.phenny, None) mylife.mlihp(self.phenny, None)
assert self.phenny.say.called is True assert self.phenny.say.called is True