#NEWLINE# def test_to_dict_with_filters_and_sa( self ) : #NEWLINE# #INDENT# class A ( resources . BaseResource ) : #NEWLINE# #INDENT# __filter_cols__ = [ 'filtered' ] #NEWLINE# #UNINDENT# test_a = A ( ) #NEWLINE# test_a . some_attr = 'some_value' #NEWLINE# test_a . filtered = 'something_hidden' #NEWLINE# test_a . _sa_instance_state = 'some_sqlalchemy_magic' #NEWLINE# a_dict = test_a . to_dict ( ) #NEWLINE# self . assertEqual ( { #NEWLINE# #INDENT# 'some_attr' : 'some_value' , #NEWLINE# #UNINDENT# } , a_dict )