MCPcopy Create free account
hub / github.com/clips/pattern / test_wordlist

Method test_wordlist

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

Source from the content-addressed store, hash-verified

1037 pass
1038
1039 def test_wordlist(self):
1040 # Assert lazy loading Wordlist.
1041 v = en.wordlist.STOPWORDS
1042 self.assertTrue("the" in v)
1043 # Assert Wordlist to dict.
1044 v = dict.fromkeys(en.wordlist.STOPWORDS, True)
1045 self.assertTrue("the" in v)
1046 # Assert new Wordlist by adding other Wordlists.
1047 v = en.wordlist.STOPWORDS + en.wordlist.ACADEMIC
1048 self.assertTrue("the" in v)
1049 self.assertTrue("dr." in v)
1050 print "pattern.en.wordlist.Wordlist"
1051
1052#---------------------------------------------------------------------------------------------------
1053

Callers

nothing calls this directly

Calls 1

fromkeysMethod · 0.45

Tested by

no test coverage detected