コード例 #1
0
    def test_base_fault(self):
        r = remoting.BaseFault(code=u'å',
                               type=u'å',
                               description=u'å',
                               details=u'å')

        self.assertEquals(
            repr(r),
            "BaseFault level=None code=u'\\xe5' type=u'\\xe5' description=u'\\xe5'\nTraceback:\nu'\\xe5'"
        )
コード例 #2
0
    def test_base_fault(self):
        r = remoting.BaseFault(
            code='å',
            type='å',
            description='å',
            details='å'
        )

        self.assertEqual(
            repr(r),
            "BaseFault level=None code='å' type='å' description="
            "'å'\nTraceback:\n'å'"
        )