MCPcopy Create free account
hub / github.com/LabPy/lantz / Spam

Class Spam

lantz/testsuite/test_dictfeat.py:47–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 def test_readonly(self):
46
47 class Spam(Driver):
48
49 _eggs = {'answer': 42}
50
51 @DictFeat()
52 def eggs(self_, key):
53 return self_._eggs[key]
54
55 obj = Spam()
56 self.assertEqual(obj.eggs['answer'], 42)

Callers 10

test_readonlyMethod · 0.70
test_writeonlyMethod · 0.70
test_readwriteMethod · 0.70
test_cacheMethod · 0.70
test_loggerMethod · 0.70
test_unitsMethod · 0.70
test_keysMethod · 0.70
test_keys_mappingMethod · 0.70
test_of_instanceMethod · 0.70
test_in_instanceMethod · 0.70

Calls 2

DictFeatClass · 0.90
get_loggerFunction · 0.90

Tested by 10

test_readonlyMethod · 0.56
test_writeonlyMethod · 0.56
test_readwriteMethod · 0.56
test_cacheMethod · 0.56
test_loggerMethod · 0.56
test_unitsMethod · 0.56
test_keysMethod · 0.56
test_keys_mappingMethod · 0.56
test_of_instanceMethod · 0.56
test_in_instanceMethod · 0.56