#NEWLINE# def test_plans_post_version_not_found_yaml( self , PlanHandler , resp_mock , request_mock ) : #NEWLINE# #INDENT# request_mock . body = 'name: ex_plan1\ndescription: dsc1.' #NEWLINE# request_mock . content_type = 'application/x-yaml' #NEWLINE# hand_create = PlanHandler . return_value . create #NEWLINE# hand_create . return_value = fakes . FakePlan ( ) #NEWLINE# plan . PlansController ( ) . post ( ) #NEWLINE# self . assertEqual ( 400 , resp_mock . status )