'Test xml_translate() with attribute translate="off".'

def test_translate_xml_off(self):

    terms = []
    source = '<div>\n                                                                                                stuff    before\n                                                                                                <div    t-translation="off">Do    not    translate    this</div>\n                                                                                                stuff    after\n                                                                                </div>'
    result = xml_translate(terms.append, source)
    self.assertEquals(result, source)
    self.assertItemsEqual(terms, ['stuff    before', 'stuff    after'])
