~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/shelf_tests.py

  • Committer: Aaron Bentley
  • Date: 2007-07-24 17:10:08 UTC
  • Revision ID: abentley@panoramicfeedback.com-20070724171008-b3ygal61ec5dojub
Better error when shelving binary files

Show diffs side-by-side

added added

removed removed

Lines of Context:
563
563
        self.assertTrue(os.path.exists('.shelf/shelves/default/01'))
564
564
        self.assertFalse(os.path.exists('.shelf/shelves/other/01'))
565
565
 
 
566
    def test_shelf_binary(self):
 
567
        self.tree = self.make_branch_and_tree('.')
 
568
        self.build_tree_contents([('file', '\x00')])
 
569
        self.tree.add('file')
 
570
        self.run_bzr_error(['Changes involve binary files.'], 'shelve --all')
 
571
 
566
572
    def test_shelf_bad_patch_arg(self):
567
573
        self.tree = self.make_branch_and_tree('.')
568
574