add what the commit test, simply mylife tests
This commit is contained in:
17
modules/test/test_commit.py
Normal file
17
modules/test/test_commit.py
Normal 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
|
||||
Reference in New Issue
Block a user