summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unittest/test_groups.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/unittest/test_groups.py b/test/unittest/test_groups.py
new file mode 100644
index 0000000..639022a
--- /dev/null
+++ b/test/unittest/test_groups.py
@@ -0,0 +1,22 @@
+#!/usr/bin/python
+
+# unit tests for group functionality in func
+
+import func.overlord.client as fc
+
+
+
+class TestGroups(object):
+
+ def test_expand_servers(self):
+ result = fc.expand_servers("*")
+ print result
+
+ def test_get_groups(self):
+ result = fc.get_groups()
+ print result
+
+ def test_get_hosts_by_groupgoo(self):
+ group_dict = fc.get_groups()
+ hosts = fc.get_hosts_by_groupgoo(group_dict, "@blippy")
+ print hosts