From b890e285e197d7889389f8f72147dea76354da26 Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Tue, 29 Jan 2008 13:56:21 -0500 Subject: some simple unittest for groups --- test/unittest/test_groups.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/unittest/test_groups.py 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 -- cgit