#NEWLINE# def test_adds_transforms_to_list_in_reverse_order( self , import_module_mock , getmembers_mock ) : #NEWLINE# #INDENT# getmembers_mock . return_value = { #NEWLINE# #INDENT# 'TestModelTransform0002' : TestModelTransform0002 , #NEWLINE# 'TestModelTransform0003' : TestModelTransform0003 , #NEWLINE# #UNINDENT# } . items ( ) #NEWLINE# returned_classes = get_transform_classes ( transform_base = 'some_package.some_module.TestModelTransform' , reverse = True ) #NEWLINE# self . assertEqual ( TestModelTransform0002 , getmembers_mock [ 1 ] ) #NEWLINE# self . assertEqual ( TestModelTransform0003 , returned_classes [ 0 ] ) #NEWLINE# self . assertEqual ( 2 , len ( returned_classes ) )