'Test that a nested AtomicString is not parsed.'

def testNestedAtomicString(self):

    tree = markdown.util.etree.Element(u'div')
    p = markdown.util.etree.SubElement(tree, u'p')
    p.text = markdown.util.AtomicString(u'*some*    ')
    span1 = markdown.util.etree.SubElement(p, u'span')
    span1.text = markdown.util.AtomicString(u'*more*    ')
    span2 = markdown.util.etree.SubElement(span1, u'span')
    span2.text = markdown.util.AtomicString(u'*text*    ')
    span3 = markdown.util.etree.SubElement(span2, u'span')
    span3.text = markdown.util.AtomicString(u'*here*')
    span3.tail = markdown.util.AtomicString(u'    *to*')
    span2.tail = markdown.util.AtomicString(u'    *test*')
    span1.tail = markdown.util.AtomicString(u'    *with*')
    new = self.inlineprocessor.run(tree)
    self.assertEqual(markdown.serializers.to_html_string(new), u'<div><p>*some*    <span>*more*    <span>*text*    <span>*here*</span>    *to*</span>    *test*</span>    *with*</p></div>')
