Esempio n. 1
0
 def test_compare_strings_fail_2(self):
     string1 = 'Wall'
     string2 = ''
     tolerance = 0
     result = MatchBlock.compare_strings(string1,
                                         string2,
                                         tolerance=tolerance)
     self.assertIs(result, False)
Esempio n. 2
0
 def test_compare_strings_pass_3(self):
     string1 = 'Wall'
     string2 = 'Fall'
     tolerance = 25.5
     result = MatchBlock.compare_strings(string1,
                                         string2,
                                         tolerance=tolerance)
     self.assertIs(result, True)