def testQRatioUnicodeString(self): s1 = "Á" s2 = "ABCD" score = fuzz.QRatio(s1, s2) self.assertEqual(0, score)
def testQuickRatioCaseInsensitive(self): self.assertEqual(fuzz.QRatio(self.s1, self.s2), 100)
def testQuickRatioNotEqual(self): self.assertNotEqual(fuzz.QRatio(self.s1, self.s3), 100)
def testQuickRatioEqual(self): self.assertEqual(fuzz.QRatio(self.s1, self.s1a), 100)