#NEWLINE# def test_draft_visible_superuser( self ) : #NEWLINE# #INDENT# super_user = self . create_superuser ( data = { #NEWLINE# #INDENT# 'password' : 'password' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . project . status = CONTENT_STATUS_DRAFT #NEWLINE# self . project . save ( ) #NEWLINE# self . client . login ( username = super_user . username , password = 'password' ) #NEWLINE# response = self . client . get ( response . url ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# self . project . status = CONTENT_STATUS_PUBLISHED #NEWLINE# self . project . publish_date = ( now ( ) + timedelta ( minutes = 1 ) ) #NEWLINE# self . project . save ( ) #NEWLINE# response = self . client . get ( self . url ) #NEWLINE# self . assertEqual ( response . status_code , 200 )