Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_readonly
Method · 0.70
test_writeonly
Method · 0.70
test_readwrite
Method · 0.70
test_cache
Method · 0.70
test_logger
Method · 0.70
test_units
Method · 0.70
test_keys
Method · 0.70
test_keys_mapping
Method · 0.70
test_of_instance
Method · 0.70
test_in_instance
Method · 0.70
Calls
2
DictFeat
Class · 0.90
get_logger
Function · 0.90
Tested by
10
test_readonly
Method · 0.56
test_writeonly
Method · 0.56
test_readwrite
Method · 0.56
test_cache
Method · 0.56
test_logger
Method · 0.56
test_units
Method · 0.56
test_keys
Method · 0.56
test_keys_mapping
Method · 0.56
test_of_instance
Method · 0.56
test_in_instance
Method · 0.56