#NEWLINE# def test_api_tag_for_vote( self ) : #NEWLINE# #INDENT# res = self . client . get ( self . _reverse_api ( 'tags-for-object' , app_label = 'laws' , object_type = 'vote' , object_id = self . vote . id ) ) #NEWLINE# self . assertEqual ( res . status_code , 200 ) #NEWLINE# res_json = json . loads ( res . content ) [ 'objects' ] #NEWLINE# self . assertEqual ( len ( res_json ) , 2 )