#NEWLINE# def test_save( self ) : #NEWLINE# #INDENT# user = UserFactory ( ) #NEWLINE# data = { #NEWLINE# #INDENT# 'comment' : 'something' , #NEWLINE# #UNINDENT# } #NEWLINE# form = forms . AccessKeyForm ( data = data , user = user ) #NEWLINE# assert form . is_valid ( ) #NEWLINE# form . save ( ) #NEWLINE# assert ( user . access_keys . count ( ) == 1 ) #NEWLINE# key = user . access_keys . first ( ) #NEWLINE# assert ( key . comment == 'something' )