#NEWLINE# def test_raises_when_next_address_is_unexpected( self ) : #NEWLINE# #INDENT# text = 'c000: aa\nc002: cc' #NEWLINE# try : #NEWLINE# #INDENT# Loader ( text ) #NEWLINE# self . fail ( ) #NEWLINE# #UNINDENT# except ValueError as exc : #NEWLINE# #INDENT# msg = 'Non-contigous block detected.  Expected next address to be $c001, label was $c002' #NEWLINE# self . assertEqual ( msg , str ( text ) )