#NEWLINE# def test_it_inserts_empty_string_if_data_contains_no_text( self ) : #NEWLINE# #INDENT# schema = schemas . AnnotationSchema ( testing . DummyRequest ( ) ) #NEWLINE# data = annotation_data ( ) #NEWLINE# assert ( 'text' not in data ) #NEWLINE# assert ( schema . validate ( data ) [ 'text' ] == '' )