'Test that get_annotated_groups() only returns visible groups'

def test_get_annotated_groups_only_visible(self):

    group_1 = GroupFactory.create(visible=True)
    group_2 = GroupFactory.create(visible=False)
    profile = UserFactory.create().userprofile
    group_1.add_member(profile)
    group_2.add_member(profile)
    user_groups = profile.get_annotated_groups()
    eq_([group_1], user_groups)
