remove broken nodetodo module

This commit is contained in:
mutantmonkey
2012-12-05 15:17:04 -05:00
parent 402137d379
commit f8e2afbb9d
2 changed files with 0 additions and 92 deletions

View File

@@ -1,23 +0,0 @@
"""
test_nodetodo.py - tests for the node-todo xss module
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
"""
import re
import unittest
from mock import MagicMock, Mock
from modules.nodetodo import xss, urlshortener
class TestNodeTodo(unittest.TestCase):
def setUp(self):
self.phenny = MagicMock()
def test_xss(self):
input = Mock(group=lambda x: 'http://vtluug.org/')
xss(self.phenny, input)
out = self.phenny.reply.call_args[0][0]
m = re.match('^http://node-todobin\.herokuapp\.com/list/[a-z0-9]+$',
out, flags=re.UNICODE)
self.assertTrue(m)