phenny-1/modules/test/test_mylife.py

22 lines
490 B
Python
Raw Normal View History

"""
test_mylife.py - tests for the mylife module
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
"""
import unittest
2012-06-02 04:13:50 -04:00
from mock import MagicMock
from modules import mylife
class TestMylife(unittest.TestCase):
def setUp(self):
self.phenny = MagicMock()
def test_fml(self):
mylife.fml(self.phenny, None)
assert self.phenny.say.called is True
def test_mlia(self):
mylife.mlia(self.phenny, None)
assert self.phenny.say.called is True