/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: Martin Pool
  • Date: 2009-11-26 01:42:06 UTC
  • mfrom: (4827 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4828.
  • Revision ID: mbp@sourcefrog.net-20091126014206-qvf8jfpwpro558r4
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
490
490
        self.assertEqualStat(real, fake)
491
491
 
492
492
    def test_assertEqualStat_notequal(self):
493
 
        self.build_tree(["foo", "bar"])
 
493
        self.build_tree(["foo", "longname"])
494
494
        self.assertRaises(AssertionError, self.assertEqualStat,
495
 
            os.lstat("foo"), os.lstat("bar"))
 
495
            os.lstat("foo"), os.lstat("longname"))
496
496
 
497
497
 
498
498
class TestTestCaseWithMemoryTransport(tests.TestCaseWithMemoryTransport):
516
516
        cwd = osutils.getcwd()
517
517
        self.assertIsSameRealPath(self.test_dir, cwd)
518
518
 
 
519
    def test_BZR_HOME_and_HOME_are_bytestrings(self):
 
520
        """The $BZR_HOME and $HOME environment variables should not be unicode.
 
521
 
 
522
        See https://bugs.launchpad.net/bzr/+bug/464174
 
523
        """
 
524
        self.assertIsInstance(os.environ['BZR_HOME'], str)
 
525
        self.assertIsInstance(os.environ['HOME'], str)
 
526
 
519
527
    def test_make_branch_and_memory_tree(self):
520
528
        """In TestCaseWithMemoryTransport we should not make the branch on disk.
521
529