<?xml version='1.0' encoding='utf-8'?>
<?python #

some_xml = "<a><b><c>we'll stop here, thanks..</c></b></a>"

?>
<testdoc xmlns:py="http://purl.org/kid/ns#">
  <test>
    <attempt><p py:replace="'some text'">this should be replaced</p></attempt>
    <expect>some text</expect>
  </test>
  
  <test>
    <attempt><p py:replace="None">Should not say None</p></attempt>
    <expect></expect>
  </test>

  <test>
    <attempt><p py:replace="XML(some_xml)">will be replaced</p></attempt>
    <expect><a><b><c>we'll stop here, thanks..</c></b></a></expect>
  </test>
</testdoc>
