#NEWLINE# def test_superuser_allowed( self ) : #NEWLINE# #INDENT# superuser = self . create_superuser ( data = { #NEWLINE# #INDENT# 'password' : 'password' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . client . login ( username = superuser . username , password = 'password' ) #NEWLINE# response = self . client . get ( self . url ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# self . assertEqual ( Project . objects . count ( ) , 1 )