aboutsummaryrefslogtreecommitdiffstats
path: root/tests.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2017-02-27 10:28:23 +0200
committerFilipp Lepalaan <filipp@mac.com>2017-02-27 10:28:23 +0200
commit66ac3ea8dbf8c88b7d666183edaa34df0688795d (patch)
tree078d811addf786058e02de04b6c8807981769601 /tests.py
parentf33638664835a99b2e11584251a19e6f2374f998 (diff)
downloadmachammer-66ac3ea8dbf8c88b7d666183edaa34df0688795d.tar.gz
machammer-66ac3ea8dbf8c88b7d666183edaa34df0688795d.tar.bz2
machammer-66ac3ea8dbf8c88b7d666183edaa34df0688795d.zip
Added curl and other stuff
Diffstat (limited to 'tests.py')
-rwxr-xr-xtests.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests.py b/tests.py
index 9c9580f..85eee77 100755
--- a/tests.py
+++ b/tests.py
@@ -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):