'Test xml_translate() with formatting elements without actual text.'

def test_translate_xml_inline3(self):

    terms = []
    source = '<form    string="Form    stuff">\n                                                                                                <div>\n                                                                                                                <span    class="before"/>\n                                                                                                                <h1>Blah    blah    blah</h1>\n                                                                                                                <span    class="after">\n                                                                                                                                <i    class="hack"/>\n                                                                                                                </span>\n                                                                                                </div>\n                                                                                </form>'
    result = xml_translate(terms.append, source)
    self.assertEquals(result, source)
    self.assertItemsEqual(terms, ['Form    stuff', 'Blah    blah    blah'])
