#NEWLINE# def test_where( self ) : #NEWLINE# #INDENT# uq = UpdateQuery ( User , { #NEWLINE# #INDENT# User . username : 'updated' , #NEWLINE# #UNINDENT# } ) . where ( ( User . id == 2 ) ) #NEWLINE# self . assertWhere ( uq , '("users"."id" = ?)' , [ 2 ] ) #NEWLINE# uq = UpdateQuery ( User , { #NEWLINE# #INDENT# User . username : 'updated' , #NEWLINE# #UNINDENT# } ) . where ( ( User . id == 2 ) ) . where ( ( User . username == 'old' ) ) #NEWLINE# self . assertWhere ( uq , '(("users"."id" = ?) AND ("users"."username" = ?))' , [ 2 , 'old' ] )