#NEWLINE# def test_plans_get_all_json( self , PlanHandler , resp_mock , request_mock ) : #NEWLINE# #INDENT# hand_get = PlanHandler . return_value . get_all #NEWLINE# fake_plan = fakes . FakePlan ( ) #NEWLINE# hand_get . return_value = [ fake_plan ] #NEWLINE# resp = plan . PlansController ( ) . get_all ( ) #NEWLINE# self . assertIsNotNone ( resp ) #NEWLINE# resp_json = json . loads ( resp ) #NEWLINE# self . assertEqual ( fake_plan . raw_content [ 'name' ] , resp_json [ 0 ] [ 'name' ] ) #NEWLINE# self . assertEqual ( 200 , resp_mock . status ) #NEWLINE# hand_get . assert_called_with ( )