#NEWLINE# def test_upgrade_head( self , migration ) : #NEWLINE# #INDENT# self . migrate . upgrade ( 'head' ) #NEWLINE# migration . db_sync . assert_called_once_with ( migration . migrate . engine , self . migrate . repository , None , init_version = 0 )