#NEWLINE# def test_copy_multi_table_inheritance( self ) : #NEWLINE# #INDENT# saint_patrick_event = SingleEventPage . objects . get ( url_path = '/home/events/saint-patrick/' ) #NEWLINE# new_saint_patrick_event = saint_patrick_event . copy ( update_attrs = { #NEWLINE# #INDENT# 'slug' : 'new-saint-patrick' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertIsInstance ( new_saint_patrick_event , SingleEventPage ) #NEWLINE# self . assertEqual ( new_saint_patrick_event . excerpt , saint_patrick_event . excerpt ) #NEWLINE# self . assertNotEqual ( saint_patrick_event . id , new_saint_patrick_event . id ) #NEWLINE# self . assertNotEqual ( saint_patrick_event . eventpage_ptr . id , new_saint_patrick_event . eventpage_ptr . id ) #NEWLINE# self . assertNotEqual ( saint_patrick_event . eventpage_ptr . page_ptr . id , new_saint_patrick_event . eventpage_ptr . page_ptr . id ) #NEWLINE# self . assertEqual ( new_saint_patrick_event . url_path , '/home/events/new-saint-patrick/' ) #NEWLINE# self . assertIsInstance ( EventPage . objects . get ( id = new_saint_patrick_event . id ) , EventPage ) #NEWLINE# self . assertIsInstance ( Page . objects . get ( id = new_saint_patrick_event . id ) , Page )