#NEWLINE# def test_save_fetch_revert( self ) : #NEWLINE# #INDENT# t = test_utils . GiveBackRevert ( 'my task' ) #NEWLINE# s = self . _get_storage ( ) #NEWLINE# s . ensure_atom ( s ) #NEWLINE# s . set_atom_intention ( 'my task' , states . REVERT ) #NEWLINE# s . save ( 'my task' , 2 , state = states . REVERTED ) #NEWLINE# self . assertRaises ( exceptions . NotFound , s . get , 'my task' ) #NEWLINE# self . assertEqual ( 2 , s . get_revert_result ( 'my task' ) )