def METHOD_NAME(self):
    """With multiple nested groups, asserts that hosts are returned
    in deterministic order
    """
    top_group = Group('A')
    expected_hosts = []
    for name in ['z', 'b', 'c', 'a', 'p', 'q']:
        child = Group('group_{0}'.format(name))
        top_group.add_child_group(child)
        host = Host('host_{0}'.format(name))
        child.add_host(host)
        expected_hosts.append(host)
    assert top_group.get_hosts() == expected_hosts