#NEWLINE# def test_substrings_match6( self ) : #NEWLINE# #INDENT# o = inmemory . ReadOnlyInMemoryLDAPEntry ( dn = 'cn=foo,dc=example,dc=com' , attributes = { #NEWLINE# #INDENT# 'objectClass' : [ 'a' , 'b' ] , #NEWLINE# 'aValue' : [ 'aBCdE' ] , #NEWLINE# 'bValue' : [ 'b' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# result = o . match ( pureldap . LDAPFilter_substrings ( type = 'aValue' , substrings = [ pureldap . LDAPFilter_substrings_initial ( 'A' ) , pureldap . LDAPFilter_substrings_any ( 'b' ) , pureldap . LDAPFilter_substrings_any ( 'C' ) , pureldap . LDAPFilter_substrings_any ( 'D' ) , pureldap . LDAPFilter_substrings_final ( 'e' ) ] ) ) #NEWLINE# self . assertEquals ( result , True )