'Test xml_translate() with formatting elements.'

def test_translate_xml_inline1(self):

    terms = []
    source = '<form    string="Form    stuff">\n                                                                                                <h1>Blah    <i>blah</i>    blah</h1>\n                                                                                                Put    some    <b>more    text</b>    here\n                                                                                                <field    name="foo"/>\n                                                                                </form>'
    result = xml_translate(terms.append, source)
    self.assertEquals(result, source)
    self.assertItemsEqual(terms, ['Form    stuff', 'Blah    <i>blah</i>    blah', 'Put    some    <b>more    text</b>    here'])
