blob: 32da15c6710b6868db61628f241de63bd348b90f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/usr/bin/python
# unit tests for group functionality in func
import func.overlord.client as fc
class GroupBuilder(object):
def __init__(self):
pass
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
# FIXME: comment this out till I setup a way to test with a speciic
# test config -akl
# def test_get_hosts_by_groupgoo(self):
# group_dict = fc.get_groups()
# hosts = fc.get_hosts_by_groupgoo(group_dict, "@blippy")
# print hosts
|