phenny/modules/test/test_commit.py

18 lines
396 B
Python
Raw Permalink Normal View History

"""
test_commit.py - tests for the what the commit module
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
"""
import unittest
2012-06-02 04:13:50 -04:00
from mock import MagicMock
from modules.commit import commit
class TestCommit(unittest.TestCase):
def setUp(self):
self.phenny = MagicMock()
def test_commit(self):
commit(self.phenny, None)
assert self.phenny.reply.called is True