/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

removed mkdir_with_ownership as its probably cleaner to just use copy_ownership
after mkdir

Show diffs side-by-side

added added

removed removed

Lines of Context:
2013
2013
        self.assertEquals(self.path, 'test_file')
2014
2014
        self.assertEquals(self.uid, s.st_uid)
2015
2015
        self.assertEquals(self.gid, s.st_gid)
2016
 
 
2017
 
    def test_mkdir_with_ownership_chown(self):
2018
 
        """Ensure that osutils.mkdir_with_ownership chowns correctly with ownership_src.
2019
 
        """
2020
 
        ownsrc = '/'
2021
 
        osutils.mkdir_with_ownership('foo', ownsrc)
2022
 
 
2023
 
        s = os.stat(ownsrc)
2024
 
        self.assertEquals(self.path, 'foo')
2025
 
        self.assertEquals(self.uid, s.st_uid)
2026
 
        self.assertEquals(self.gid, s.st_gid)