~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

(gz) Correct selftest bzr script location lookup logic when bzrlib is in the
 cwd (Martin [gz])

Show diffs side-by-side

added added

removed removed

Lines of Context:
2337
2337
            os.chdir = orig_chdir
2338
2338
        self.assertEqual(['foo', 'current'], chdirs)
2339
2339
 
 
2340
    def test_get_bzr_path_with_cwd_bzrlib(self):
 
2341
        self.get_source_path = lambda: ""
 
2342
        self.overrideAttr(os.path, "isfile", lambda path: True)
 
2343
        self.assertEqual(self.get_bzr_path(), "bzr")
 
2344
 
2340
2345
 
2341
2346
class TestActuallyStartBzrSubprocess(tests.TestCaseWithTransport):
2342
2347
    """Tests that really need to do things with an external bzr."""