The mock-jutsu library provides a comprehensive suite of identity generation tools, among which the inn_individual function stands out for developers working with Russian financial and administrative systems. This function generates a valid Russian Individual Taxpayer Identification Number, commonly known as an INN. Unlike random digit strings, the inn_individual generator produces mock data that adheres strictly to the official standards set by the Federal Tax Service of Russia. This ensures that the generated test data passes through front-end validation masks and back-end verification logic without triggering errors or exceptions during the development lifecycle.
At its technical core, the inn_individual function implements a sophisticated checksum algorithm based on the Modulo 11 method. For individual tax IDs, the structure consists of a ten-digit sequence where the first two digits represent the regional code, the next several digits identify the specific tax office and the individual’s unique record, and the final digits serve as the control sum. By using mock-jutsu, developers can automate the creation of these complex identifiers across various environments, whether via the command-line interface, direct Python integration using jutsu.generate('inn_individual'), or within performance testing suites such as Apache JMeter.
Incorporating realistic mock data into your workflow is essential for testing scenarios involving KYC (Know Your Customer) processes, tax reporting modules, and banking software. Using the inn_individual function allows QA engineers to simulate large datasets for stress testing while ensuring that every entry is syntactically correct. This level of precision is vital for debugging database constraints and verifying that application logic correctly handles the specific mathematical properties of a Russian INN. Furthermore, utilising synthetic test data instead of real taxpayer information enhances security and ensures compliance with global data protection regulations regarding sensitive personal information.
The versatility of mock-jutsu makes it an indispensable asset for modern DevOps pipelines. By providing a reliable way to generate an inn_individual, the library reduces the manual overhead of sourcing valid IDs for staging environments. Whether you are building a fintech application or a government services portal, this function delivers the consistency needed for robust automated testing. The ability to generate such specific identifiers on the fly empowers teams to focus on feature development, knowing that their underlying test data is both accurate and compliant with regional standards.
mockjutsu generate inn_individualmockjutsu bulk inn_individual --count 10mockjutsu export inn_individual --count 10 --format jsonmockjutsu export inn_individual --count 10 --format csvmockjutsu export inn_individual --count 10 --format sql# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate inn_individual --maskmockjutsu bulk inn_individual --count 5 --maskfrom mockjutsu import jutsujutsu.generate('inn_individual')jutsu.bulk('inn_individual', count=10)jutsu.template(['inn_individual'], count=5)# mask=True: regulation-compliant outputjutsu.generate('inn_individual', mask=True)jutsu.bulk('inn_individual', count=5, mask=True)${__mockjutsu_identity(inn_individual)}# JMeter Function: __mockjutsu_identity# Parameter 1: inn_individual# Parameter 2: (not required for this function)# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_identity(inn_individual,mask)}GET /generate/inn_individual# → {"type":"inn_individual","result":"...","status":"ok"}GET /bulk/inn_individual?count=10POST /template {"types":["inn_individual"],"count":1}# mask=true: regulation-compliant outputGET /generate/inn_individual?mask=trueGET /bulk/inn_individual?count=5&mask=true| Parameter | Values | Description |
|---|---|---|
| --mask | true | false | Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…) |