/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

Merge back test typo fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
1991
1991
        self.path, self.uid, self.gid = path, uid, gid
1992
1992
 
1993
1993
    def test_copy_ownership_from_path(self):
1994
 
        """copy_ownership_from_path test with specified src.
1995
 
        """
 
1994
        """copy_ownership_from_path test with specified src."""
1996
1995
        ownsrc = '/'
1997
1996
        f = open('test_file', 'wt')
1998
 
        osutils.copy_ownership('test_file', ownsrc)
 
1997
        osutils.copy_ownership_from_path('test_file', ownsrc)
1999
1998
 
2000
1999
        s = os.stat(ownsrc)
2001
2000
        self.assertEquals(self.path, 'test_file')
2003
2002
        self.assertEquals(self.gid, s.st_gid)
2004
2003
 
2005
2004
    def test_copy_ownership_nonesrc(self):
2006
 
        """copy_ownership_from_path test with src=None.
2007
 
        """
 
2005
        """copy_ownership_from_path test with src=None."""
2008
2006
        f = open('test_file', 'wt')
2009
2007
        # should use parent dir for permissions
2010
 
        osutils.copy_ownership('test_file')
 
2008
        osutils.copy_ownership_from_path('test_file')
2011
2009
 
2012
2010
        s = os.stat('..')
2013
2011
        self.assertEquals(self.path, 'test_file')