#NEWLINE# def test_callable_default( self ) : #NEWLINE# #INDENT# 'A lazy callable may be used for ForeignKey.default.' #NEWLINE# a = Foo . objects . create ( id = 1 , a = 'abc' , d = Decimal ( '12.34' ) ) #NEWLINE# b = Bar . objects . create ( b = 'bcd' ) #NEWLINE# self . assertEqual ( b . a , a )