pep_statusCompliance

Mock Jutsu HOW-TO | EN

The pep_status function within the mock-jutsu library is a specialized tool designed for developers and QA engineers working on financial compliance and regulatory technology. By providing realistic mock data for Politically Exposed Person (PEP) classifications, this function enables teams to simulate complex Anti-Money Laundering (AML) and Know Your Customer (KYC) workflows without the risk of handling sensitive real-world information. Whether you are building a risk scoring engine or a customer onboarding portal, pep_status ensures your test data reflects the nuanced categories required by global financial regulators and internal audit teams.

When invoked, the function returns one of five distinct statuses: Not PEP, PEP, RCA (Relative or Close Associate), Former PEP, or Unknown. These outputs are not merely random strings; they are structured to align with international standards such as those defined by the Financial Action Task Force (FATF). By incorporating these specific labels into your automated testing suites, mock-jutsu allows you to verify how your application handles different risk profiles, from the standard low-risk "Not PEP" status to the high-scrutiny "RCA" or "PEP" designations. This level of detail is essential for ensuring that conditional logic and enhanced due diligence triggers function correctly under pressure.

The versatility of pep_status makes it indispensable for various testing scenarios across the software development lifecycle. Developers can use it to validate conditional logic in UI components, ensuring that additional documentation fields appear only when a user is flagged as a PEP. Meanwhile, performance testers can leverage the JMeter integration to populate large-scale databases with diverse compliance profiles, testing the system's ability to process and filter high volumes of regulated data. Because mock-jutsu supports Python, CLI, and JMeter environments, integrating this function into existing CI/CD pipelines is seamless and requires minimal configuration.

Beyond technical implementation, using pep_status provides significant organizational benefits by eliminating the logistical hurdles of sourcing or anonymizing production data. By utilizing high-quality test data that mimics real-world compliance logic, teams can identify edge cases—such as how the system treats an "Unknown" status—long before the code reaches production. Ultimately, mock-jutsu empowers developers to build more robust, compliant, and secure financial applications with confidence, ensuring that every edge case in the compliance spectrum is accounted for during the development process.

CLI Usage
mockjutsu generate pep_statusmockjutsu bulk pep_status --count 10mockjutsu export pep_status --count 10 --format jsonmockjutsu export pep_status --count 10 --format csvmockjutsu export pep_status --count 10 --format sql
Python API
from mockjutsu import jutsujutsu.generate('pep_status')jutsu.bulk('pep_status', count=10)jutsu.template(['pep_status'], count=5)
JMeter
${__mockjutsu_compliance(pep_status)}# JMeter Function: __mockjutsu_compliance# Parameter 1: pep_status# Parameter 2: (not required for this function)
REST API
GET /generate/pep_status# → {"type":"pep_status","result":"...","status":"ok"}GET /bulk/pep_status?count=10POST /template {"types":["pep_status"],"count":1}

Other Languages