~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

Merge bzr.dev.

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, cwd)
 
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