remove broken modules

These can be added back if they begin working reliably again.
This commit is contained in:
mutantmonkey
2014-06-02 11:12:15 -07:00
parent eb2119309d
commit 4cdda19636
4 changed files with 0 additions and 101 deletions

View File

@@ -1,22 +0,0 @@
"""
test_catfacts.py - tests for the cat facts module
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
"""
import re
import unittest
from mock import MagicMock
from modules.catfacts import catfacts
class TestCatfacts(unittest.TestCase):
def setUp(self):
self.phenny = MagicMock()
def test_catfacts(self):
catfacts(self.phenny, None)
out = self.phenny.reply.call_args[0][0]
m = re.match('^.* \(#[0-9]+\)$', out,
flags=re.UNICODE)
self.assertTrue(m)

View File

@@ -1,24 +0,0 @@
"""
test_short.py - tests for the vtluug url shortener module
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
"""
import unittest
from mock import MagicMock, Mock
from modules.short import short
class TestShort(unittest.TestCase):
def setUp(self):
self.phenny = MagicMock()
def test_short(self):
input = Mock(group=lambda x: 'http://vtluug.org/')
short(self.phenny, input)
self.phenny.reply.assert_called_once_with('http://vtlu.ug/bLQYAy')
def test_short_none(self):
input = Mock(group=lambda x: None)
short(self.phenny, input)
self.phenny.reply.assert_called_once_with(
"No URL provided. CAN I HAS?")