#NEWLINE# def test__mapping_overrides( self ) : #NEWLINE# #INDENT# new_name = 'MyName' #NEWLINE# new_id = 'MyID' #NEWLINE# class Test ( resource2 . Resource ) : #NEWLINE# #INDENT# name = resource2 . Body ( new_name ) #NEWLINE# id = resource2 . Body ( new_id ) #NEWLINE# #UNINDENT# mapping = Test . _body_mapping ( ) #NEWLINE# self . assertEqual ( new_name , mapping [ 'name' ] ) #NEWLINE# self . assertEqual ( new_id , mapping [ 'id' ] )