~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

Merge bzr.dev

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',
2268
2277
                   'bzrlib.tests.test_deprecated_graph',
2269
2278
                   'bzrlib.tests.test_diff',
2270
2279
                   'bzrlib.tests.test_dirstate',
 
2280
                   'bzrlib.tests.test_email_message',
2271
2281
                   'bzrlib.tests.test_errors',
2272
2282
                   'bzrlib.tests.test_escaped_store',
2273
2283
                   'bzrlib.tests.test_extract',