Skip to content

Commit

Permalink
Fix: test after hg fix
Browse files Browse the repository at this point in the history
  • Loading branch information
naparuba committed Jan 8, 2015
1 parent b366eee commit db2547e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test_inheritance_and_plus.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ def test_inheritance_and_plus(self):
# HOST 1 is lin-servers,dmz, so should be in linux AND DMZ group
for hg in host1.hostgroups:
print hg.get_name()
self.assertIn(linux, host1.hostgroups)
self.assertIn(dmz, host1.hostgroups)
self.assertIn(linux.get_name(), [hg.get_name() for hg in host1.hostgroups])
self.assertIn(dmz.get_name(), [hg.get_name() for hg in host1.hostgroups])

# HOST2 is in lin-servers,dmz and +mysql, so all three of them
for hg in host2.hostgroups:
print hg.get_name()
self.assertIn(linux, host2.hostgroups)
self.assertIn(dmz, host2.hostgroups)
self.assertIn(mysql, host2.hostgroups)
self.assertIn(linux.get_name(), [hg.get_name() for hg in host2.hostgroups])
self.assertIn(dmz.get_name(), [hg.get_name() for hg in host2.hostgroups])
self.assertIn(mysql.get_name(), [hg.get_name() for hg in host2.hostgroups])



Expand Down

0 comments on commit db2547e

Please sign in to comment.