add what the commit test, simply mylife tests

This commit is contained in:
mutantmonkey
2012-06-01 22:17:28 -07:00
parent 9add0985ec
commit 30705b87de
2 changed files with 23 additions and 23 deletions

View File

@@ -0,0 +1,17 @@
"""
test_commit.py - tests for the what the commit module
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
"""
import unittest
from mock import MagicMock, Mock
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 == 1