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

Method add_component

tests/unit/utils/test_vobject.py:326–329  ·  view source on GitHub ↗
(self, c, sub_c)

Source from the content-addressed store, hash-verified

324
325 @rule(c=Parsed, sub_c=Parsed)
326 def add_component(self, c, sub_c):
327 assume(sub_c is not c and sub_c not in c)
328 c.subcomponents.append(sub_c)
329 assert '\r\n'.join(sub_c.dump_lines()) in '\r\n'.join(c.dump_lines())
330
331 @rule(c=Parsed)
332 def sanity_check(self, c):

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
dump_linesMethod · 0.80

Tested by

no test coverage detected