'test all visible page ids are either in_public and not in_restricted
or not in_public and in_restricted'

def assertNodeMemberships(self, visible_page_ids, restricted_pages, public_page_ids):

    for page_id in visible_page_ids:
        in_restricted = False
        in_public = False
        if (page_id in restricted_pages):
            in_restricted = True
        if (page_id in public_page_ids):
            in_public = True
        self.assertTrue(((in_public and (not in_restricted)) or ((not in_public) and in_restricted)), msg=('page_id    %s    in_public:    %s,    in_restricted:    %s' % (page_id, in_public, in_restricted)))
