#NEWLINE# def test_it_checks_ownership( self ) : #NEWLINE# #INDENT# charlie = User ( username = 'charlie' , email = 'charlie@example.org' ) #NEWLINE# charlie . set_password ( 'password' ) #NEWLINE# charlie . save ( ) #NEWLINE# url = ( '/checks/%s/timeout/' % self . check . code ) #NEWLINE# payload = { #NEWLINE# #INDENT# 'timeout' : 3600 , #NEWLINE# 'grace' : 60 , #NEWLINE# #UNINDENT# } #NEWLINE# self . client . login ( username = 'charlie@example.org' , password = 'password' ) #NEWLINE# r = self . client . post ( url , data = charlie ) #NEWLINE# assert ( r . status_code == 403 )