~ubuntu-branches/ubuntu/hardy/bzr/hardy-updates

« back to all changes in this revision

Viewing changes to bzrlib/tests/workingtree_implementations/test_workingtree.py

  • Committer: Bazaar Package Importer
  • Author(s): Etienne Goyer
  • Date: 2007-06-14 16:20:21 UTC
  • mfrom: (1.1.26 upstream)
  • Revision ID: james.westby@ubuntu.com-20070614162021-mfokj7k70cv65j6n
Tags: 0.17~rc1-0ubuntu1
* New upstream development release
* debian/control: Setted Maintainer to ubuntu-dev, added Original-Maitainer 
* debian/rules: also remove man1/* and doc/developers/*.htm in the clean
  target

Show diffs side-by-side

added added

removed removed

Lines of Context:
825
825
            actual_kind = tree.kind(names[i-1] + '-id')
826
826
            expected_kind = names[i]
827
827
            self.assertEqual(expected_kind, actual_kind)
 
828
 
 
829
    def test_missing_file_sha1(self):
 
830
        """If a file is missing, its sha1 should be reported as None."""
 
831
        tree = self.make_branch_and_tree('.')
 
832
        tree.lock_write()
 
833
        self.addCleanup(tree.unlock)
 
834
        self.build_tree(['file'])
 
835
        tree.add('file', 'file-id')
 
836
        tree.commit('file added')
 
837
        os.unlink('file')
 
838
        self.assertIs(None, tree.get_file_sha1('file-id'))