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

Method get_unparsed_lines

tests/unit/utils/test_vobject.py:285–293  ·  view source on GitHub ↗
(self, joined, encoded)

Source from the content-addressed store, hash-verified

283 joined=st.booleans(),
284 encoded=st.booleans())
285 def get_unparsed_lines(self, joined, encoded):
286 rv = ['BEGIN:FOO', 'FOO:YES', 'END:FOO']
287 if joined:
288 rv = '\r\n'.join(rv)
289 if encoded:
290 rv = rv.encode('utf-8')
291 elif encoded:
292 assume(False)
293 return rv
294
295 @rule(unparsed=Unparsed, target=Parsed)
296 def parse(self, unparsed):

Callers

nothing calls this directly

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected