Пример #1
0
 def test_is_abbreviation_pass_3(self):
     string1 = 'The National Aeronautics and Space Administration'
     string2 = 'NASA'
     result = MatchBlock.is_abbreviation(string1, string2)
     self.assertIs(result, True)
Пример #2
0
 def test_is_abbreviation_pass_5(self):
     string1 = '                        JPL   '
     string2 = 'A Jet Propulsion Laboratory'
     result = MatchBlock.is_abbreviation(string1, string2)
     self.assertIs(result, True)
Пример #3
0
 def test_is_abbreviation_pass_2(self):
     string1 = 'NHS'
     string2 = 'National Health Service'
     result = MatchBlock.is_abbreviation(string1, string2)
     self.assertIs(result, True)