~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Martin Pool
  • Date: 2006-01-30 06:23:50 UTC
  • mfrom: (1534.1.17 integration)
  • Revision ID: mbp@sourcefrog.net-20060130062350-d6f25277ddcdfd79
[merge] robert's integration of much recent work

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
import bzrlib.commands
40
40
from bzrlib.errors import BzrError
41
41
import bzrlib.inventory
 
42
import bzrlib.iterablefile
42
43
import bzrlib.merge3
43
44
import bzrlib.osutils
44
45
import bzrlib.osutils as osutils
56
57
                      bzrlib.commands,
57
58
                      bzrlib.errors,
58
59
                      bzrlib.inventory,
 
60
                      bzrlib.iterablefile,
59
61
                      bzrlib.merge3,
60
62
                      bzrlib.option,
61
63
                      bzrlib.osutils,
62
64
                      bzrlib.store
63
65
                      ]
64
66
def packages_to_test():
 
67
    """Return a list of packages to test.
 
68
 
 
69
    The packages are not globally imported so that import failures are
 
70
    triggered when running selftest, not when importing the command.
 
71
    """
 
72
    import bzrlib.doc
65
73
    import bzrlib.tests.blackbox
66
74
    return [
 
75
            bzrlib.doc,
67
76
            bzrlib.tests.blackbox
68
77
            ]
69
78
 
292
301
            raise AssertionError("value(s) %r not present in container %r" % 
293
302
                                 (missing, superlist))
294
303
 
 
304
    def assertIs(self, left, right):
 
305
        if not (left is right):
 
306
            raise AssertionError("%r is not %r." % (left, right))
 
307
 
295
308
    def assertTransportMode(self, transport, path, mode):
296
309
        """Fail if a path does not have mode mode.
297
310
        
687
700
                   'bzrlib.tests.test_config',
688
701
                   'bzrlib.tests.test_conflicts',
689
702
                   'bzrlib.tests.test_diff',
 
703
                   'bzrlib.tests.test_decorators',
690
704
                   'bzrlib.tests.test_fetch',
691
705
                   'bzrlib.tests.test_fileid_involved',
692
706
                   'bzrlib.tests.test_gpg',
695
709
                   'bzrlib.tests.test_http',
696
710
                   'bzrlib.tests.test_identitymap',
697
711
                   'bzrlib.tests.test_inv',
 
712
                   'bzrlib.tests.test_lockable_files',
698
713
                   'bzrlib.tests.test_log',
699
714
                   'bzrlib.tests.test_merge',
700
715
                   'bzrlib.tests.test_merge3',