~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-07 21:31:58 UTC
  • mto: This revision was merged to the branch mainline in revision 1991.
  • Revision ID: john@arbash-meinel.com-20060907213158-71df9bbd07474d1d
Update the test suite to put HOME in a different directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
420
420
        self.assertEqual(tests[1].transport_server, server1)
421
421
        self.assertEqual(tests[1].transport_readonly_server, server2)
422
422
 
 
423
 
 
424
class TestTestCaseInTempDir(TestCaseInTempDir):
 
425
 
 
426
    def test_home_is_not_working(self):
 
427
        self.assertNotEqual(self.test_dir, self.test_home_dir)
 
428
        cwd = osutils.getcwd()
 
429
        self.assertEqual(self.test_dir)
 
430
        self.assertEqual(self.test_home_dir, os.environ['HOME'])
 
431
 
 
432
 
423
433
class TestTestCaseWithTransport(TestCaseWithTransport):
424
434
    """Tests for the convenience functions TestCaseWithTransport introduces."""
425
435