#NEWLINE# def test_create_system_user_key_error( self ) : #NEWLINE# #INDENT# from ramses import auth #NEWLINE# config = Mock ( ) #NEWLINE# config . registry . settings = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# auth . create_system_user ( config ) #NEWLINE# assert ( not self . registry . auth_model . get_or_create . called )