#NEWLINE# def test_has_nested( self ) : #NEWLINE# #INDENT# builder = OrmBuilderTestModelParentStub . where_has ( 'foo' , ( lambda q : q . has ( 'bar' ) ) ) #NEWLINE# result = OrmBuilderTestModelParentStub . has ( 'foo.bar' ) . to_sql ( ) #NEWLINE# self . assertEqual ( builder . to_sql ( ) , result )