def METHOD_NAME(self, image):
    with testvm.Timeout(seconds=300, error_message="Timed out waiting for image to run"):
        network = testvm.VirtNetwork(0, image=image)
        machine = testvm.VirtMachine(image=image, networking=network.host(), memory_mb=512)
        machine.start()
        machine.wait_boot()
        out = machine.execute('cat /var/custom-test')
        machine.stop()
    self.assertEqual(out, "hello\n")