#NEWLINE# def test_language_packs_post_nodata( self , LanguagePackHandler , resp_mock , request_mock ) : #NEWLINE# #INDENT# request_mock . body = '' #NEWLINE# request_mock . content_type = 'application/json' #NEWLINE# hand_create = LanguagePackHandler . return_value . create #NEWLINE# hand_create . return_value = fakes . FakeImage ( ) #NEWLINE# ret_val = language_pack . LanguagePacksController ( ) . post ( ) #NEWLINE# faultstring = str ( ret_val [ 'faultstring' ] ) #NEWLINE# self . assertEqual ( 'Missing argument: "data"' , ret_val ) #NEWLINE# self . assertEqual ( 400 , resp_mock . status )