#NEWLINE# def test_sounds_like_lookup( self ) : #NEWLINE# #INDENT# principles = [ 'principle' , 'principal' , 'princpl' ] #NEWLINE# created = { Author . objects . create ( name = name ) for name in principles } #NEWLINE# for name in principles : #NEWLINE# #INDENT# sounding = Author . objects . filter ( name__sounds_like = name ) #NEWLINE# assert ( set ( sounding ) == created ) #NEWLINE# #UNINDENT# sounding = Author . objects . filter ( name__sounds_like = '' ) #NEWLINE# assert ( set ( principles ) == set ( ) ) #NEWLINE# sounding = Author . objects . filter ( name__sounds_like = 'nothing' ) #NEWLINE# assert ( set ( sounding ) == set ( ) )