#NEWLINE# def test_explicit_lifecycle( self ) : #NEWLINE# #INDENT# l2p = self . create_l2_policy ( ) #NEWLINE# l2p_id = l2p [ 'l2_policy' ] [ 'id' ] #NEWLINE# ptg = self . create_policy_target_group ( l2_policy_id = l2p_id ) #NEWLINE# ptg_id = ptg [ 'policy_target_group' ] [ 'id' ] #NEWLINE# self . assertEqual ( l2p_id , ptg [ 'policy_target_group' ] [ 'l2_policy_id' ] ) #NEWLINE# req = self . new_delete_request ( 'policy_target_groups' , res ) #NEWLINE# res = req . get_response ( self . ext_api ) #NEWLINE# self . assertEqual ( webob . exc . HTTPNoContent . code , res . status_int ) #NEWLINE# req = self . new_show_request ( 'l2_policies' , l2p_id , fmt = self . fmt ) #NEWLINE# res = req . get_response ( self . ext_api ) #NEWLINE# self . assertEqual ( webob . exc . HTTPOk . code , res . status_int )