~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-09-29 22:03:03 UTC
  • mfrom: (5416.2.6 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20100929220303-cr95h8iwtggco721
(mbp) Add 'break-lock --force'

Show diffs side-by-side

added added

removed removed

Lines of Context:
627
627
        result = test.run()
628
628
        total_failures = result.errors + result.failures
629
629
        if self._lock_check_thorough:
630
 
            self.assertLength(1, total_failures)
 
630
            self.assertEqual(1, len(total_failures))
631
631
        else:
632
632
            # When _lock_check_thorough is disabled, then we don't trigger a
633
633
            # failure
634
 
            self.assertLength(0, total_failures)
 
634
            self.assertEqual(0, len(total_failures))
635
635
 
636
636
 
637
637
class TestTestCaseWithTransport(tests.TestCaseWithTransport):