Skip to content

Commit

Permalink
Fix #10 (refactor bug)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arg0s1080 committed Nov 28, 2019
1 parent fd095ba commit c096b92
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions examples/mrz_generator_samples/visa_mrva_usa.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
sys.path.append(realpath(join(dirname(__file__), pardir, pardir)))
##############################################################################################

from mrz.generator.mrva import MRVBCodeGenerator
from mrz.generator.mrva import MRVACodeGenerator
from examples.functions.functions import open_image

print(MRVBCodeGenerator(
print(MRVACodeGenerator(
"VN", # Document type For visas, the first letter must be 'V'
"USA", # Country 3 letters code or country name
"TRAVELER", # Surname(s) Special characters will be transliterated
Expand Down
4 changes: 2 additions & 2 deletions examples/mrz_generator_samples/visa_mrva_usa2.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from mrz.generator.mrva import MRVBCodeGenerator
from mrz.generator.mrva import MRVACodeGenerator
from examples.functions.functions import open_image

print(MRVBCodeGenerator(
print(MRVACodeGenerator(
"VI", # Document type For visas, the first letter must be 'V'
"USA", # Country 3 letters code or country name
"TRAVELER", # Surname(s) Special characters will be transliterated
Expand Down
4 changes: 2 additions & 2 deletions examples/mrz_generator_samples/visa_mrva_uto.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from mrz.generator.mrva import MRVBCodeGenerator
from mrz.generator.mrva import MRVACodeGenerator
from examples.functions.functions import open_image

print(MRVBCodeGenerator(
print(MRVACodeGenerator(
"V", # Document type For visas, the first letter must be 'V'
"UTO", # Country 3 letters code or country name
"ERIKSSON", # Surname(s) Special characters will be transliterated
Expand Down
2 changes: 1 addition & 1 deletion mrz/generator/mrva.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import mrz.generator._transliterations as dictionary


class MRVBCodeGenerator(TD3CodeGenerator):
class MRVACodeGenerator(TD3CodeGenerator):
"""Calculate the string code for machine readable zone visas of type A (MRVA)
Params:
Expand Down
4 changes: 2 additions & 2 deletions tests/mrva_gnt_01.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import unittest
from mrz.generator.mrva import MRVBCodeGenerator
from mrz.generator.mrva import MRVACodeGenerator


class TestCase06(unittest.TestCase):

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

result = ("V<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<\n"
Expand Down
4 changes: 2 additions & 2 deletions tests/mrva_gnt_02.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import unittest
from mrz.generator.mrva import MRVBCodeGenerator
from mrz.generator.mrva import MRVACodeGenerator


class TestCase07(unittest.TestCase):

def test_mrva_generator(self):
generator = MRVBCodeGenerator("VI", "USA", "TRAVELER", "HAPPYPERSON", "555123ABC", "GBR",
generator = MRVACodeGenerator("VI", "USA", "TRAVELER", "HAPPYPERSON", "555123ABC", "GBR",
"650205", "F", "041223", "IFLND00AMS803085")

result = ("VIUSATRAVELER<<HAPPYPERSON<<<<<<<<<<<<<<<<<<\n"
Expand Down

0 comments on commit c096b92

Please sign in to comment.