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

Method load

test/test_text.py:18–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16 # Assert lazy dictionary only has data after one of its methods is called.
17 class V(text.lazydict):
18 def load(self):
19 dict.__setitem__(self, "a", 1)
20 v = V()
21 self.assertTrue(dict.__len__(v) == 0)
22 self.assertTrue(dict.__contains__(v, "a") is False)

Callers 15

test_pluralizeMethod · 0.45
test_singularizeMethod · 0.45
test_spellingMethod · 0.45
test_modalityMethod · 0.45
test_sentimentMethod · 0.45
test_sentiwordnetMethod · 0.45
test_pluralizeMethod · 0.45
test_singularizeMethod · 0.45
test_attributiveMethod · 0.45
test_predicativeMethod · 0.45
test_sentimentMethod · 0.45

Calls 2

__setitem__Method · 0.45
appendMethod · 0.45

Tested by

no test coverage detected