'Test xml_translate() with t-* attributes.'

def test_translate_xml_t(self):

    terms = []
    source = '<t    t-name="stuff">\n                                                                                                stuff    before\n                                                                                                <span    t-field="o.name"/>\n                                                                                                stuff    after\n                                                                                </t>'
    result = xml_translate(terms.append, source)
    self.assertEquals(result, source)
    self.assertItemsEqual(terms, ['stuff    before', 'stuff    after'])
