#NEWLINE# def test_parse_log( self ) : #NEWLINE# #INDENT# logfile = os . path . join ( TESTS_DIR , 'assets/logcontent' ) #NEWLINE# lp = handle_results . LogParser ( migrations , None ) #NEWLINE# lp . process_log ( ) #NEWLINE# self . assertEqual ( [ ] , lp . errors ) #NEWLINE# self . assertEqual ( [ ] , lp . warnings ) #NEWLINE# migrations = [ ] #NEWLINE# for migration in lp . migrations : #NEWLINE# #INDENT# migrations . append ( migration [ 'to' ] ) #NEWLINE# #UNINDENT# for migration in range ( 134 , 229 ) : #NEWLINE# #INDENT# self . assertTrue ( ( migration in migrations ) , ( 'Migration %d missing from %s' % ( migration , migrations ) ) )