/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/test_selftest.py

  • Committer: Robert Collins
  • Date: 2007-09-27 21:11:38 UTC
  • mfrom: (2871 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2879.
  • Revision ID: robertc@robertcollins.net-20070927211138-ebsu1bo1qz9f1w8n
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
564
564
    def test_home_is_not_working(self):
565
565
        self.assertNotEqual(self.test_dir, self.test_home_dir)
566
566
        cwd = osutils.getcwd()
567
 
        self.assertEqual(self.test_dir, cwd)
568
 
        self.assertEqual(self.test_home_dir, os.environ['HOME'])
 
567
        self.assertIsSameRealPath(self.test_dir, cwd)
 
568
        self.assertIsSameRealPath(self.test_home_dir, os.environ['HOME'])
569
569
 
570
570
 
571
571
class TestTestCaseWithMemoryTransport(TestCaseWithMemoryTransport):
579
579
        few tests should need to do that), and having a missing dir as home is
580
580
        an effective way to ensure that this is the case.
581
581
        """
582
 
        self.assertEqual(self.TEST_ROOT + "/MemoryTransportMissingHomeDir",
 
582
        self.assertIsSameRealPath(
 
583
            self.TEST_ROOT + "/MemoryTransportMissingHomeDir",
583
584
            self.test_home_dir)
584
 
        self.assertEqual(self.test_home_dir, os.environ['HOME'])
 
585
        self.assertIsSameRealPath(self.test_home_dir, os.environ['HOME'])
585
586
        
586
587
    def test_cwd_is_TEST_ROOT(self):
587
 
        self.assertEqual(self.test_dir, self.TEST_ROOT)
 
588
        self.assertIsSameRealPath(self.test_dir, self.TEST_ROOT)
588
589
        cwd = osutils.getcwd()
589
 
        self.assertEqual(self.test_dir, cwd)
 
590
        self.assertIsSameRealPath(self.test_dir, cwd)
590
591
 
591
592
    def test_make_branch_and_memory_tree(self):
592
593
        """In TestCaseWithMemoryTransport we should not make the branch on disk.