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

  • Committer: Martin Pool
  • Date: 2007-03-06 12:13:06 UTC
  • mto: (2321.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: mbp@sourcefrog.net-20070306121306-n387xz1h5aguv1he
Prohibit dirstate from getting entries called ..

Show diffs side-by-side

added added

removed removed

Lines of Context:
789
789
        finally:
790
790
            state.unlock()
791
791
 
 
792
    def test_add_forbidden_names(self):
 
793
        state = dirstate.DirState.initialize('dirstate')
 
794
        self.assertRaises(errors.BzrError,
 
795
            state.add, '.', 'ass-id', 'directory', None, None)
 
796
        self.assertRaises(errors.BzrError,
 
797
            state.add, '..', 'ass-id', 'directory', None, None)
 
798
 
792
799
 
793
800
class TestGetLines(TestCaseWithDirState):
794
801