def test_close_error():
 d = gs_deleter.Deleter()
 d.close()
 with pytest.raises(exception.UserCritical):
  d.delete('no value should work')

def test_close_error ( ) : d = gs_deleter . Deleter ( ) d . close ( ) with pytest . raises ( exception . UserCritical ) : d . delete ( 'no value should work' )
ensure that attempts to use a closed deleter results in an error .