#NEWLINE# def test_many_to_many_unsaved( self ) : #NEWLINE# #INDENT# source = ManyToManySource ( name = 'source-unsaved' ) #NEWLINE# serializer = ManyToManySourceSerializer ( source ) #NEWLINE# expected = { #NEWLINE# #INDENT# 'id' : None , #NEWLINE# 'name' : 'source-unsaved' , #NEWLINE# 'targets' : [ ] , #NEWLINE# #UNINDENT# } #NEWLINE# with self . assertNumQueries ( 0 ) : #NEWLINE# #INDENT# self . assertEqual ( serializer . data , expected )