Skip to content

Commit

Permalink
Fix: bad hostgroup test that was looking for hard objects
Browse files Browse the repository at this point in the history
  • Loading branch information
naparuba committed Jan 8, 2015
1 parent a9a0ef1 commit b366eee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ def test_states_from_exit_status(self):


def test_hostgroup(self):
hg = self.sched.hostgroups.find_by_name("hostgroup_01")
hg = self.conf.hostgroups.find_by_name("hostgroup_01")
self.assertIsNot(hg, None)
h = self.sched.hosts.find_by_name('test_host_0')
h = self.conf.hosts.find_by_name('test_host_0')
self.assertIn(h, hg.members)
self.assertIn(hg, h.hostgroups)
self.assertIn(hg.get_name(), [hg.get_name() for hg in h.hostgroups])


def test_childs(self):
Expand Down

0 comments on commit b366eee

Please sign in to comment.