#NEWLINE# def test_raw_queries( self ) : #NEWLINE# #INDENT# User . raw ( 'insert into user (username) values (?)' , 'charlie' ) . execute ( ) #NEWLINE# rq = list ( User . raw ( 'select * from user where username = ?' , 'charlie' ) ) #NEWLINE# self . assertEqual ( self [ 0 ] . username , 'charlie' ) #NEWLINE# self . assertQueries ( [ 'master' , 'slave1' ] )