#NEWLINE# def test_values( self ) : #NEWLINE# #INDENT# t = MyModel ( number = 'one' , multi = dict ( sub2 = 13 ) ) #NEWLINE# t . save ( ) #NEWLINE# assert ( t . field == 10 ) #NEWLINE# assert ( t . number == 'one' ) #NEWLINE# assert ( t . multi . sub1 == 'abc' ) #NEWLINE# assert ( t . multi . sub2 == 13 ) #NEWLINE# assert ( t . params == { #NEWLINE# #INDENT# '_class' : 'devops.tests.models.test_base:MyModel' , #NEWLINE# 'field' : 10 , #NEWLINE# 'multi' : { #NEWLINE# #INDENT# 'sub2' : 13 , #NEWLINE# 'sub1' : 'abc' , #NEWLINE# #UNINDENT# } , #NEWLINE# 'number' : 'one' , #NEWLINE# #UNINDENT# } )