diff options
author | Filipp Lepalaan <filipp@mac.com> | 2017-02-27 10:28:23 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2017-02-27 10:28:23 +0200 |
commit | 66ac3ea8dbf8c88b7d666183edaa34df0688795d (patch) | |
tree | 078d811addf786058e02de04b6c8807981769601 /tests.py | |
parent | f33638664835a99b2e11584251a19e6f2374f998 (diff) | |
download | machammer-66ac3ea8dbf8c88b7d666183edaa34df0688795d.tar.gz machammer-66ac3ea8dbf8c88b7d666183edaa34df0688795d.tar.bz2 machammer-66ac3ea8dbf8c88b7d666183edaa34df0688795d.zip |
Added curl and other stuff
Diffstat (limited to 'tests.py')
-rwxr-xr-x | tests.py | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1,6 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +import os import time import logging import subprocess @@ -106,6 +107,14 @@ class FunctionsTestCase(TestCase): def test_sleep(self): functions.sleep() + def test_curl(self): + p = functions.curl(os.getenv('MH_URL')) + print(p) + + def test_mount_url(self): + p = functions.mount_url(os.getenv('MH_URL')) + self.assertTrue(os.path.isdir(p)) + class ScreenSaverTestCase(TestCase): def test_set_invalid(self): @@ -139,6 +148,9 @@ class HooksTestCase(TestCase): blaa() self.assertEquals(self.gethook(), '/var/root/Library/mh_loginhook.py') + def test_launchagent(self): + pass + def test_unset_login(self): hooks.login() with self.assertRaises(Exception): |