summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAdrian Likins <alikins@grimlock.devel.redhat.com>2008-01-29 13:56:21 -0500
committerAdrian Likins <alikins@grimlock.devel.redhat.com>2008-01-29 13:56:21 -0500
commitb890e285e197d7889389f8f72147dea76354da26 (patch)
tree61e3c5c01f7bb6501de7135bb2579ec8d84d2bff /test
parent8eb6ad3f85fb0a8c8cf45842d846b1887a6e69a1 (diff)
downloadfunc-b890e285e197d7889389f8f72147dea76354da26.tar.gz
func-b890e285e197d7889389f8f72147dea76354da26.tar.xz
func-b890e285e197d7889389f8f72147dea76354da26.zip
some simple unittest for groups
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