def METHOD_NAME(self):
    session_factory = self.replay_flight_data("test_portfolio_cross_account_remove_delete")
    client = session_factory().client("servicecatalog")
    accounts = client.list_portfolio_access(PortfolioId='port-t24m4nifknphk').get('AccountIds')
    self.assertEqual(len(accounts), 1)
    p = self.load_policy(
        {
            "name": "servicecatalog-portfolio-cross-account",
            "resource": "catalog-portfolio",
            "filters": [{"type": "cross-account"}],
            "actions": [
                {"type": "remove-shared-accounts", "accounts": "matched"},
                {"type": "delete"}
            ],
        },
        session_factory=session_factory)
    resources = p.run()
    self.assertEqual(len(resources), 1)
    self.assertEqual(resources[0]['Id'], 'port-t24m4nifknphk')
    if self.recording:
        time.sleep(10)
    portfolios = client.list_portfolios()
    self.assertFalse('port-t24m4nifknphk' in [p.get(
        'Id') for p in portfolios.get('PortfolioDetails')])