'Test accessing stanza interfaces using get().'

def testGet(self):

    class TestStanza(ElementBase, ):
        name = 'foo'
        namespace = 'foo'
        interfaces = set(('bar', 'baz'))
    stanza = TestStanza()
    stanza['bar'] = 'a'
    self.failUnless((stanza.get('bar') == 'a'), 'Incorrect    value    returned    by    stanza.get')
    self.failUnless((stanza.get('baz', 'b') == 'b'), 'Incorrect    default    value    returned    by    stanza.get')
