#NEWLINE# def test_includeme( self ) : #NEWLINE# #INDENT# from nefertari import includeme #NEWLINE# config = mock . Mock ( ) #NEWLINE# config . registry . settings = { #NEWLINE# #INDENT# 'auth' : True , #NEWLINE# #UNINDENT# } #NEWLINE# includeme ( config ) #NEWLINE# self . assertEqual ( 3 , config . add_directive . call_count ) #NEWLINE# self . assertEqual ( 2 , config . add_renderer . call_count ) #NEWLINE# root = config . get_root_resource ( ) #NEWLINE# assert root . auth