/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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-07-20 19:48:22 UTC
  • mfrom: (2474.1.74 dirstate_pyrex)
  • Revision ID: pqm@pqm.ubuntu.com-20070720194822-smqttk05w6efypf0
(John Arbash Meinel) Implement DirState._read_dirblocks() in pyrex

Show diffs side-by-side

added added

removed removed

Lines of Context:
816
816
        self.assertEqual(mode, mode_test,
817
817
                         'mode mismatch %o != %o' % (mode, mode_test))
818
818
 
 
819
    def assertPositive(self, val):
 
820
        """Assert that val is greater than 0."""
 
821
        self.assertTrue(val > 0, 'expected a positive value, but got %s' % val)
 
822
 
 
823
    def assertNegative(self, val):
 
824
        """Assert that val is less than 0."""
 
825
        self.assertTrue(val < 0, 'expected a negative value, but got %s' % val)
 
826
 
819
827
    def assertStartsWith(self, s, prefix):
820
828
        if not s.startswith(prefix):
821
829
            raise AssertionError('string %r does not start with %r' % (s, prefix))
2246
2254
    """
2247
2255
    testmod_names = [
2248
2256
                   'bzrlib.util.tests.test_bencode',
 
2257
                   'bzrlib.tests.test__dirstate_helpers',
2249
2258
                   'bzrlib.tests.test_ancestry',
2250
2259
                   'bzrlib.tests.test_annotate',
2251
2260
                   'bzrlib.tests.test_api',