MCPcopy Create free account
hub / github.com/canonical/cloud-init / test_bytes_in_userdata

Method test_bytes_in_userdata

tests/unittests/test_data.py:776–779  ·  view source on GitHub ↗
(self, ud_proc)

Source from the content-addressed store, hash-verified

774
775class TestUDProcess:
776 def test_bytes_in_userdata(self, ud_proc):
777 msg = b"#cloud-config\napt_update: True\n"
778 message = ud_proc.process(msg)
779 assert count_messages(message) == 1
780
781 def test_string_in_userdata(self, ud_proc):
782 msg = "#cloud-config\napt_update: True\n"

Callers

nothing calls this directly

Calls 2

processMethod · 0.80
count_messagesFunction · 0.70

Tested by

no test coverage detected