/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

  • Committer: John Arbash Meinel
  • Date: 2009-07-08 14:37:25 UTC
  • mfrom: (4516 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4517.
  • Revision ID: john@arbash-meinel.com-20090708143725-sc9sjy3mz4cxwxzz
Merge bzr.dev 4516

Show diffs side-by-side

added added

removed removed

Lines of Context:
240
240
        self.failIfExists('dir')
241
241
 
242
242
 
 
243
class TestDeleteAny(tests.TestCaseInTempDir):
 
244
 
 
245
    def test_delete_any_readonly(self):
 
246
        # from <https://bugs.launchpad.net/bzr/+bug/218206>
 
247
        self.build_tree(['d/', 'f'])
 
248
        osutils.make_readonly('d')
 
249
        osutils.make_readonly('f')
 
250
 
 
251
        osutils.delete_any('f')
 
252
        osutils.delete_any('d')
 
253
 
 
254
 
243
255
class TestKind(tests.TestCaseInTempDir):
244
256
 
245
257
    def test_file_kind(self):
1760
1772
    def test_os_readlink_link_decoding(self):
1761
1773
        self.assertEquals(self.target.encode(osutils._fs_enc),
1762
1774
                          os.readlink(self.link.encode(osutils._fs_enc)))
 
1775
 
 
1776
 
 
1777
class TestConcurrency(tests.TestCase):
 
1778
 
 
1779
    def test_local_concurrency(self):
 
1780
        concurrency = osutils.local_concurrency()
 
1781
        self.assertIsInstance(concurrency, int)