Esempio n. 1
0
 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()")
Esempio n. 2
0
 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()"