'Test that serializing xml:lang works.'

def testXMLLang(self):

    self.stream_start()
    msg = self.Message()
    msg._set_attr(('{%s}lang' % msg.xml_ns), 'no')
    expected = '<message    xml:lang="no"    />'
    result = msg.__str__()
    self.failUnless((expected == result), ('Serialization    with    xml:lang    failed:    %s' % result))
