~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bad_files.py

  • Committer: John Arbash Meinel
  • Date: 2007-03-14 20:47:17 UTC
  • mto: (2353.4.2 locking)
  • mto: This revision was merged to the branch mainline in revision 2360.
  • Revision ID: john@arbash-meinel.com-20070314204717-htynwogv97fqr22a
Cleanup errors, and change ReadOnlyLockError to pass around more details.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
                           ])
71
71
 
72
72
        # We should raise an error if we are adding a bogus file
73
 
        self.assertRaises(errors.BadFileKindError, wt.smart_add, ['a-fifo'])
 
73
        self.assertRaises(errors.BadFileKindError,
 
74
                          add.smart_add_tree, wt, ['a-fifo'])
74
75
 
75
76
        # And the list of files shouldn't have been modified
76
77
        verify_status(self, wt,
81
82
 
82
83
        # Make sure smart_add can handle having a bogus
83
84
        # file in the way
84
 
        wt.smart_add([])
 
85
        add.smart_add_tree(wt, ['.'])
85
86
        verify_status(self, wt,
86
87
                          ['added:\n',
87
88
                           '  six\n',