def test_name_format_4(self): input = "SMITH<JONES<<SUSIE<MARGARET<<<<<<<<<<<<" expected_output = ["Smith Jones", "Susie Margaret"] mrtd = MRTD(self.valid_mrz) output = mrtd.format_name(input) self.assertEqual(output, expected_output)
def test_name_format_1(self): input = "JANSEN<<JAN<<<<<<<<<<<<<<<<<<<<<<<<<<<<" expected_output = ["Jansen", "Jan"] mrtd = MRTD(self.valid_mrz) output = mrtd.format_name(input) self.assertEqual(output, expected_output)
def test_name_format_3(self): input = "VAN<DER<MEULEN<<MARTIN<<<<<<<<<<<<<<<<<" expected_output = ["Van Der Meulen", "Martin"] mrtd = MRTD(self.valid_mrz) output = mrtd.format_name(input) self.assertEqual(output, expected_output)