'Test copying stanza objects.'

def testCopy(self):

    class TestStanza(ElementBase, ):
        name = 'foo'
        namespace = 'foo'
        interfaces = set(('bar', 'baz'))
    stanza1 = TestStanza()
    stanza1['bar'] = 'a'
    stanza2 = stanza1.__copy__()
    self.failUnless((stanza1 == stanza2), 'Copied    stanzas    are    not    equal    to    each    other.')
    stanza1['baz'] = 'b'
    self.failUnless((stanza1 != stanza2), 'Divergent    stanza    copies    incorrectly    compared    equal.')
