#NEWLINE# def test_model_item_value( self ) : #NEWLINE# #INDENT# 'Test item value model' #NEWLINE# status = ItemStatus ( name = 'test' ) #NEWLINE# status . save ( ) #NEWLINE# type = ItemType ( name = 'test' ) #NEWLINE# type . save ( ) #NEWLINE# item = Item ( name = 'test' , item_type = type , status = status ) #NEWLINE# item . save ( ) #NEWLINE# field = ItemField ( name = 'test' , label = 'test' , field_type = 'text' ) #NEWLINE# field . save ( ) #NEWLINE# obj = ItemValue ( value = 'test' , field = field , item = item ) #NEWLINE# obj . save ( ) #NEWLINE# self . assertEquals ( 'test' , type . value ) #NEWLINE# self . assertNotEquals ( obj . id , None ) #NEWLINE# obj . delete ( )