Ejemplo n.º 1
0
    def _assertECMA48Equality(self, a, b):
        errorLines = ['received\t\texpected']
        for la, lb in zip(unc.prettystring(a).splitlines(),
                          unc.prettystring(b).splitlines()):
            errorLines.append(la + '\t\t' + lb)

        self.assertEquals(a, b, '\nERROR!\n' + '\n'.join(errorLines))
Ejemplo n.º 2
0
    def _assertECMA48Equality(self, a, b):
        errorLines = ['received\t\texpected']
        for la, lb in zip(unc.prettystring(a).splitlines(),
                          unc.prettystring(b).splitlines()):
            errorLines.append(la + '\t\t' + lb)

        self.assertEquals(a, b, '\nERROR!\n' + '\n'.join(errorLines))
Ejemplo n.º 3
0
    def _assertECMA48Equality(self, a, b):
        errorLines = ['%-38s|%38s' % ('received', 'expected')]
        for la, lb in map(None,
                          unc.prettystring(a).splitlines(),
                          unc.prettystring(b).splitlines()):
            errorLines.append('%-38s|%38s' % (la, lb))

        self.assertEquals(a, b, '\nERROR!\n' + '\n'.join(errorLines))
Ejemplo n.º 4
0
    def _assertECMA48Equality(self, a, b):
        errorLines = ['%-38s|%38s' % ('received', 'expected')]
        for la, lb in map(None,
                          unc.prettystring(a).splitlines(),
                          unc.prettystring(b).splitlines()):
            errorLines.append('%-38s|%38s' % (la, lb))

        self.assertEquals(a, b, '\nERROR!\n' + '\n'.join(errorLines))