#NEWLINE# def test_nullable_uuid_foreign_key_is_valid_when_none( self ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'name' : 'Source' , #NEWLINE# 'target' : None , #NEWLINE# #UNINDENT# } #NEWLINE# serializer = NullableUUIDForeignKeySourceSerializer ( data = data ) #NEWLINE# self . assertTrue ( serializer . is_valid ( ) , serializer . errors )