aboutsummaryrefslogtreecommitdiffstats
path: root/tests.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2017-01-05 09:17:45 +0200
committerFilipp Lepalaan <filipp@mac.com>2017-01-05 09:17:45 +0200
commitf33638664835a99b2e11584251a19e6f2374f998 (patch)
treea8786704c092eb3ae6bd07dbcc1c740c6750df22 /tests.py
parent532bc175b9016daff1a5465122bd8268072ee8f8 (diff)
downloadmachammer-f33638664835a99b2e11584251a19e6f2374f998.tar.gz
machammer-f33638664835a99b2e11584251a19e6f2374f998.tar.bz2
machammer-f33638664835a99b2e11584251a19e6f2374f998.zip
Fixed login hook decorator test
Diffstat (limited to 'tests.py')
-rwxr-xr-xtests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests.py b/tests.py
index 0dd36c5..9c9580f 100755
--- a/tests.py
+++ b/tests.py
@@ -127,7 +127,7 @@ class HooksTestCase(TestCase):
hooks.login('/lalala')
self.assertEquals(self.gethook(), '/lalala')
- def test_set_login_function(self):
+ def test_set_login_decorator(self):
from machammer.decorators import login
@login
@@ -137,6 +137,7 @@ class HooksTestCase(TestCase):
subprocess.call(['/usr/bin/say', 'Hello ' + sys.argv[1]])
blaa()
+ self.assertEquals(self.gethook(), '/var/root/Library/mh_loginhook.py')
def test_unset_login(self):
hooks.login()