Skip to content

Commit c096b92

Browse files
committed
Fix #10 (refactor bug)
1 parent fd095ba commit c096b92

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

examples/mrz_generator_samples/visa_mrva_usa.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
sys.path.append(realpath(join(dirname(__file__), pardir, pardir)))
1111
##############################################################################################
1212

13-
from mrz.generator.mrva import MRVBCodeGenerator
13+
from mrz.generator.mrva import MRVACodeGenerator
1414
from examples.functions.functions import open_image
1515

16-
print(MRVBCodeGenerator(
16+
print(MRVACodeGenerator(
1717
"VN", # Document type For visas, the first letter must be 'V'
1818
"USA", # Country 3 letters code or country name
1919
"TRAVELER", # Surname(s) Special characters will be transliterated

examples/mrz_generator_samples/visa_mrva_usa2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from mrz.generator.mrva import MRVBCodeGenerator
1+
from mrz.generator.mrva import MRVACodeGenerator
22
from examples.functions.functions import open_image
33

4-
print(MRVBCodeGenerator(
4+
print(MRVACodeGenerator(
55
"VI", # Document type For visas, the first letter must be 'V'
66
"USA", # Country 3 letters code or country name
77
"TRAVELER", # Surname(s) Special characters will be transliterated

examples/mrz_generator_samples/visa_mrva_uto.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from mrz.generator.mrva import MRVBCodeGenerator
1+
from mrz.generator.mrva import MRVACodeGenerator
22
from examples.functions.functions import open_image
33

4-
print(MRVBCodeGenerator(
4+
print(MRVACodeGenerator(
55
"V", # Document type For visas, the first letter must be 'V'
66
"UTO", # Country 3 letters code or country name
77
"ERIKSSON", # Surname(s) Special characters will be transliterated

mrz/generator/mrva.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import mrz.generator._transliterations as dictionary
2121

2222

23-
class MRVBCodeGenerator(TD3CodeGenerator):
23+
class MRVACodeGenerator(TD3CodeGenerator):
2424
"""Calculate the string code for machine readable zone visas of type A (MRVA)
2525
2626
Params:

tests/mrva_gnt_01.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import unittest
2-
from mrz.generator.mrva import MRVBCodeGenerator
2+
from mrz.generator.mrva import MRVACodeGenerator
33

44

55
class TestCase06(unittest.TestCase):
66

77
def test_mrva_generator(self):
8-
generator = MRVBCodeGenerator("V", "Utopia", "ÊrÌkS'ŝóN", "ÂNNa mARíA", "L8988901c", "Unknown",
8+
generator = MRVACodeGenerator("V", "Utopia", "ÊrÌkS'ŝóN", "ÂNNa mARíA", "L8988901c", "Unknown",
99
"400907", "f", "961210", "Ze184226b")
1010

1111
result = ("V<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<\n"

tests/mrva_gnt_02.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import unittest
2-
from mrz.generator.mrva import MRVBCodeGenerator
2+
from mrz.generator.mrva import MRVACodeGenerator
33

44

55
class TestCase07(unittest.TestCase):
66

77
def test_mrva_generator(self):
8-
generator = MRVBCodeGenerator("VI", "USA", "TRAVELER", "HAPPYPERSON", "555123ABC", "GBR",
8+
generator = MRVACodeGenerator("VI", "USA", "TRAVELER", "HAPPYPERSON", "555123ABC", "GBR",
99
"650205", "F", "041223", "IFLND00AMS803085")
1010

1111
result = ("VIUSATRAVELER<<HAPPYPERSON<<<<<<<<<<<<<<<<<<\n"

0 commit comments

Comments
 (0)