MCPcopy Index your code
hub / github.com/clips/pattern / test_negated

Method test_negated

test/test_en.py:788–795  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

786 print "pattern.en.modality.subjunctive()"
787
788 def test_negated(self):
789 # Assert True for sentences that contain "not", "n't" or "never".
790 for b, s in (
791 (True, "Not true?"),
792 (True, "Never true."),
793 (True, "Isn't true."),):
794 self.assertEqual(en.negated(en.Sentence(en.parse(s))), b)
795 print "pattern.en.negated()"
796
797 def test_mood(self):
798 # Assert imperative mood.

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected