#NEWLINE# def test_role_creation_view( self ) : #NEWLINE# #INDENT# response = self . client . post ( reverse ( 'permissions:role_create' ) , data = { #NEWLINE# #INDENT# 'label' : TEST_ROLE_LABEL , #NEWLINE# #UNINDENT# } , follow = True ) #NEWLINE# self . assertContains ( response , 'created' , status_code = 200 ) #NEWLINE# self . assertEqual ( Role . objects . count ( ) , 1 ) #NEWLINE# self . assertEqual ( Role . objects . first ( ) . label , TEST_ROLE_LABEL )