This commit is contained in:
mutantmonkey
2012-06-28 19:03:10 -07:00
parent 9f11190f0b
commit 78441d5fbf
2 changed files with 1 additions and 20 deletions

View File

@@ -5,7 +5,7 @@ author: mutantmonkey <mutantmonkey@mutantmonkey.in>
import unittest
from mock import MagicMock, Mock
from modules.calc import c, py, wa
from modules.calc import c, wa
class TestCalc(unittest.TestCase):
@@ -30,16 +30,6 @@ class TestCalc(unittest.TestCase):
self.phenny.reply.assert_called_once_with('Sorry, no result.')
def test_py(self):
input = Mock(group=lambda x: "'test'*3")
py(self.phenny, input)
self.phenny.say.assert_called_once_with('testtesttest\n')
def test_py_none(self):
input = Mock(group=lambda x: "")
py(self.phenny, input)
def test_wa(self):
input = Mock(group=lambda x: 'airspeed of an unladen swallow')
wa(self.phenny, input)