def test_negated(self): # Assert True for sentences that contain "not", "n't" or "never". for b, s in ( (True, "Not true?"), (True, "Never true."), (True, "Isn't true."),): self.assertEqual(en.negated(en.Sentence(en.parse(s))), b) print("pattern.en.negated()")
def test_negated(self): # Assert True for sentences that contain "not", "n't" or "never". for b, s in ( (True, "Not true?"), (True, "Never true."), (True, "Isn't true."),): self.assertEqual(en.negated(en.Sentence(en.parse(s))), b) print "pattern.en.negated()"