#NEWLINE# def test_postgres( self , postgres_enabled ) : #NEWLINE# #INDENT# request = DummyRequest ( db = db . Session ) #NEWLINE# postgres_enabled . return_value = True #NEWLINE# annotation = Annotation ( userid = 'luke' ) #NEWLINE# db . Session . add ( annotation ) #NEWLINE# db . Session . flush ( ) #NEWLINE# actual = storage . fetch_annotation ( request , annotation . id ) #NEWLINE# assert ( annotation == actual )