/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: John Arbash Meinel
  • Date: 2008-09-26 22:08:38 UTC
  • mfrom: (3744 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3745.
  • Revision ID: john@arbash-meinel.com-20080926220838-e05btynnn08m3qf5
Merge bzr.dev, resolve NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
877
877
        self.assertEqual(mode, mode_test,
878
878
                         'mode mismatch %o != %o' % (mode, mode_test))
879
879
 
 
880
    def assertEqualStat(self, expected, actual):
 
881
        """assert that expected and actual are the same stat result.
 
882
 
 
883
        :param expected: A stat result.
 
884
        :param actual: A stat result.
 
885
        :raises AssertionError: If the expected and actual stat values differ
 
886
            other than by atime.
 
887
        """
 
888
        self.assertEqual(expected.st_size, actual.st_size)
 
889
        self.assertEqual(expected.st_mtime, actual.st_mtime)
 
890
        self.assertEqual(expected.st_ctime, actual.st_ctime)
 
891
        self.assertEqual(expected.st_dev, actual.st_dev)
 
892
        self.assertEqual(expected.st_ino, actual.st_ino)
 
893
        self.assertEqual(expected.st_mode, actual.st_mode)
 
894
 
880
895
    def assertPositive(self, val):
881
896
        """Assert that val is greater than 0."""
882
897
        self.assertTrue(val > 0, 'expected a positive value, but got %s' % val)
1212
1227
        new_env = {
1213
1228
            'BZR_HOME': None, # Don't inherit BZR_HOME to all the tests.
1214
1229
            'HOME': os.getcwd(),
1215
 
            'APPDATA': None,  # bzr now use Win32 API and don't rely on APPDATA
 
1230
            # bzr now uses the Win32 API and doesn't rely on APPDATA, but the
 
1231
            # tests do check our impls match APPDATA
1216
1232
            'BZR_EDITOR': None, # test_msgeditor manipulates this variable
1217
1233
            'BZR_EMAIL': None,
1218
1234
            'BZREMAIL': None, # may still be present in the environment