MCPcopy
hub / github.com/pimutils/vdirsyncer / add_prop_raw

Method add_prop_raw

tests/unit/utils/test_vobject.py:318–323  ·  view source on GitHub ↗
(self, c, key, value, params)

Source from the content-addressed store, hash-verified

316 value=uid_strategy,
317 params=st.lists(st.tuples(value_strategy, value_strategy)))
318 def add_prop_raw(self, c, key, value, params):
319 params_str = ','.join(k + '=' + v for k, v in params)
320 c.props.insert(0, '{};{}:{}'.format(key, params_str, value))
321 assert c[key] == value
322 assert key in c
323 assert c.get(key) == value
324
325 @rule(c=Parsed, sub_c=Parsed)
326 def add_component(self, c, sub_c):

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected