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

renamed copy_ownership to copy_ownership_from_path.
updated .bzr.log to have 0644 permissions.
improved docstring for create_log_file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1990
1990
    def _dummy_chown(self, path, uid, gid):
1991
1991
        self.path, self.uid, self.gid = path, uid, gid
1992
1992
 
1993
 
    def test_copy_ownership(self):
1994
 
        """Ensure that copy_ownership copies ownership from specified src.
 
1993
    def test_copy_ownership_from_path(self):
 
1994
        """copy_ownership_from_path test with specified src.
1995
1995
        """
1996
1996
        ownsrc = '/'
1997
1997
        f = open('test_file', 'wt')
2003
2003
        self.assertEquals(self.gid, s.st_gid)
2004
2004
 
2005
2005
    def test_copy_ownership_nonesrc(self):
2006
 
        """Ensure that copy_ownership copies ownership from parent dir.
 
2006
        """copy_ownership_from_path test with src=None.
2007
2007
        """
2008
2008
        f = open('test_file', 'wt')
2009
2009
        # should use parent dir for permissions