#NEWLINE# def test_translations_api_v2_datamodel( self ) : #NEWLINE# #INDENT# pr = modelfactories . AheadPressReleaseFactory . create ( ) #NEWLINE# pr_trans = modelfactories . PressReleaseTranslationFactory . create ( press_release = pr ) #NEWLINE# response = self . app . get ( ( '/api/v2/apressreleases/%s/' % pr_trans . press_release . pk ) , extra_environ = self . extra_environ ) #NEWLINE# expected_keys = [ 'content' , 'id' , 'language' , 'resource_uri' , 'title' ] #NEWLINE# self . assertEqual ( sorted ( response . json [ 'translations' ] [ 0 ] . keys ( ) ) , sorted ( expected_keys ) )