blob: 639022a17045618066cf1536812bb61967ec3f6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|