#NEWLINE# def test_plan_put_bad_names( self , PlanHandler , resp_mock , request_mock ) : #NEWLINE# #INDENT# request_mock . content_type = 'application/x-yaml' #NEWLINE# hand_update = PlanHandler . return_value . update #NEWLINE# hand_update . return_value = fakes . FakePlan ( ) #NEWLINE# pc = plan . PlanController ( 'test_id' ) #NEWLINE# request_mock . body = ( 'version: 1\nname: %s' % ( 'a' * 101 ) ) #NEWLINE# pc . put ( ) #NEWLINE# self . assertEqual ( 400 , resp_mock . status ) #NEWLINE# request_mock . body = ( 'version: 1\nname: %s' % 'name with spaces' ) #NEWLINE# pc . put ( ) #NEWLINE# self . assertEqual ( 400 , resp_mock . status )