#NEWLINE# def test_creates_new_objects_for_entries_with_unknown_identifiers( self ) : #NEWLINE# #INDENT# event = self . save ( ) #NEWLINE# location_id = event . locations [ 0 ] . id #NEWLINE# data = { #NEWLINE# #INDENT# 'name' : 'Some event' , #NEWLINE# 'locations-0-id' : 12 , #NEWLINE# 'locations-0-name' : 'Some other location' , #NEWLINE# #UNINDENT# } #NEWLINE# self . save ( data , data ) #NEWLINE# assert event . locations #NEWLINE# assert ( event . locations [ 0 ] . id != location_id )