/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

assertEqual uses pformat to show results

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
import errno
34
34
import logging
35
35
import os
 
36
from pprint import pformat
36
37
import re
37
38
import shlex
38
39
import stat
600
601
                                  charjunk=lambda x: False)
601
602
        return ''.join(difflines)
602
603
 
 
604
    def assertEqual(self, a, b):
 
605
        if a == b:
 
606
            return
 
607
        raise AssertionError("not equal:\na = %s\nb = %s\n"
 
608
            % (pformat(a, indent=4), pformat(b, indent=4)))
 
609
 
 
610
    assertEquals = assertEqual
 
611
 
603
612
    def assertEqualDiff(self, a, b, message=None):
604
613
        """Assert two texts are equal, if not raise an exception.
605
614