def testVariant3(self): result = punctuation.quantify_variant(self.analysis, 2) expected = { ':': 4 * 1 / 7.0, ',': 4 * 2 / 7.0, '.': 4 * 1 / 7.0, '"': 4 * 2 / 7.0, } self.assertDictContainsSubset(expected, result)
def testVariant1(self): result = punctuation.quantify_variant(self.analysis, 0) expected = { ':': 1 / 2000.0, ',': 2 / 2000.0, '.': 1 / 2000.0, '"': 2 / 2000.0, } self.assertDictContainsSubset(expected, result)