#NEWLINE# def test_field_not_null_without_default( self ) : #NEWLINE# #INDENT# class TestModel ( CollectionModel ) : #NEWLINE# #INDENT# list_field = ListField ( null = False ) #NEWLINE# #UNINDENT# TestModel . init ( ) #NEWLINE# model = TestModel ( ) #NEWLINE# model . list_field = ( 13 , 15 , 16 ) #NEWLINE# model . save ( ) #NEWLINE# documents = TestModel . collection_instance . documents ( ) #NEWLINE# self . assertEqual ( len ( documents ) , 1 ) #NEWLINE# doc1 = model [ 0 ] #NEWLINE# self . assertTrue ( isinstance ( doc1 . list_field , list ) ) #NEWLINE# TestModel . destroy ( )