#NEWLINE# def test_wrong_security_scheme_type( self , mock_parse ) : #NEWLINE# #INDENT# raml_resource = Mock ( security_schemes = [ Mock ( type = 'x-Foo' , settings = { #NEWLINE# #INDENT# 'collection' : 4 , #NEWLINE# 'item' : 7 , #NEWLINE# #UNINDENT# } ) ] ) #NEWLINE# config = config_mock ( ) #NEWLINE# acl_cls = acl . generate_acl ( config , model_cls = 'Foo' , raml_resource = raml_resource , es_based = False ) #NEWLINE# assert ( not mock_parse . called ) #NEWLINE# assert ( acl_cls . item_model == 'Foo' ) #NEWLINE# assert issubclass ( acl_cls , acl . BaseACL ) #NEWLINE# instance = acl_cls ( request = None ) #NEWLINE# assert ( not config . es_based ) #NEWLINE# assert ( instance . _collection_acl == [ ] ) #NEWLINE# assert ( instance . _item_acl == [ ] )