#NEWLINE# def test_only_how_to_contribute( self ) : #NEWLINE# #INDENT# 'Test that only Administration articles are shown' #NEWLINE# locale = settings . WIKI_DEFAULT_LANGUAGE #NEWLINE# p = ProductFactory ( title = 'Firefox' , slug = 'firefox' ) #NEWLINE# d1 = DocumentFactory ( products = [ p ] ) #NEWLINE# d2 = DocumentFactory ( title = 'Admin' , category = ADMINISTRATION_CATEGORY , products = [ p ] ) #NEWLINE# ApprovedRevisionFactory ( document = d1 ) #NEWLINE# ApprovedRevisionFactory ( document = d2 ) #NEWLINE# eq_ ( 1 , len ( self . rows ( locale = locale , product = p ) ) ) #NEWLINE# eq_ ( p . title , self . row ( locale = locale , product = p ) [ 'title' ] ) #NEWLINE# eq_ ( '' , self . row ( locale = locale , product = p ) [ 'status' ] )