#NEWLINE# def test_adding_integer( self ) : #NEWLINE# #INDENT# blueprint = Blueprint ( 'users' ) #NEWLINE# blueprint . integer ( 'foo' ) #NEWLINE# statements = blueprint . to_sql ( self . get_connection ( ) , self . get_grammar ( ) ) #NEWLINE# self . assertEqual ( 1 , len ( blueprint ) ) #NEWLINE# self . assertEqual ( 'ALTER TABLE `users` ADD `foo` INT NOT NULL' , statements [ 0 ] ) #NEWLINE# blueprint = Blueprint ( 'users' ) #NEWLINE# blueprint . integer ( 'foo' , True ) #NEWLINE# statements = blueprint . to_sql ( self . get_connection ( ) , self . get_grammar ( ) ) #NEWLINE# self . assertEqual ( 1 , len ( statements ) ) #NEWLINE# self . assertEqual ( 'ALTER TABLE `users` ADD `foo` INT NOT NULL AUTO_INCREMENT PRIMARY KEY' , statements [ 0 ] )