aboutsummaryrefslogtreecommitdiffstats
path: root/tests.py
diff options
context:
space:
mode:
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):