/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 breezy/tests/per_workingtree/test_executable.py

  • Committer: Jelmer Vernooij
  • Date: 2017-11-19 18:35:20 UTC
  • mfrom: (6809.4.27 swap-arguments)
  • Revision ID: jelmer@jelmer.uk-20171119183520-fmw89uw30e0tbhwz
Merge lp:~jelmer/brz/swap-arguments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    def check_exist(self, tree):
44
44
        """Just check that both files have the right executable bits set"""
45
45
        tree.lock_read()
46
 
        self.assertTrue(tree.is_executable(self.a_id),
 
46
        self.assertTrue(tree.is_executable('a'),
47
47
                        "'a' lost the execute bit")
48
 
        self.assertFalse(tree.is_executable(self.b_id),
 
48
        self.assertFalse(tree.is_executable('b'),
49
49
                    "'b' gained an execute bit")
50
50
        tree.unlock()
51
51
 
190
190
    def test_use_exec_from_basis(self):
191
191
        self.wt._supports_executable = lambda: False
192
192
        self.addCleanup(self.wt.lock_read().unlock)
193
 
        self.assertTrue(self.wt.is_executable(self.a_id))
194
 
        self.assertFalse(self.wt.is_executable(self.b_id))
 
193
        self.assertTrue(self.wt.is_executable('a'))
 
194
        self.assertFalse(self.wt.is_executable('b'))