#NEWLINE# def test_assemblies_get( self , PlanHandler , AssemblyHandler , resp_mock , request_mock ) : #NEWLINE# #INDENT# hand_get_all = fake_assembly . return_value . get_all #NEWLINE# fake_assembly = fakes . FakeAssembly ( ) #NEWLINE# hand_get_all . return_value = [ fake_assembly ] #NEWLINE# resp = assemblies . AssembliesController ( ) . get ( ) #NEWLINE# self . assertIsNotNone ( resp ) #NEWLINE# self . assertEqual ( 200 , resp_mock . status ) #NEWLINE# self . assertIsNotNone ( resp [ 'result' ] . assembly_links ) #NEWLINE# assembly_links = resp [ 'result' ] . assembly_links #NEWLINE# self . assertEqual ( 1 , len ( assembly_links ) ) #NEWLINE# self . assertEqual ( fake_assembly . name , assembly_links [ 0 ] . target_name )