18 lines
399 B
Python
18 lines
399 B
Python
"""
|
|
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
|