#NEWLINE# def test_returns_only_visible_pages( self ) : #NEWLINE# #INDENT# self . both_groups_page . status = FancyPage . DRAFT #NEWLINE# self . both_groups_page . save ( ) #NEWLINE# with self . assertNumQueries ( 1 ) : #NEWLINE# #INDENT# pages = sm_tags . get_pages ( group = self . footer_group . slug ) #NEWLINE# self . assertSequenceEqual ( pages , [ self . footer_page ] )