~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bad_files.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-07-04 08:08:08 UTC
  • mfrom: (2568.2.10 add)
  • Revision ID: pqm@pqm.ubuntu.com-20070704080808-0ptk5p5yiwxjgnt7
(robertc) Overhaul smart_add to be an api on MutableTree allowing specialisation and reducing some cruft. (Robert Collins, Martin Pool)

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,
74
 
                          add.smart_add_tree, wt, ['a-fifo'])
 
73
        self.assertRaises(errors.BadFileKindError, wt.smart_add, ['a-fifo'])
75
74
 
76
75
        # And the list of files shouldn't have been modified
77
76
        verify_status(self, wt,
82
81
 
83
82
        # Make sure smart_add can handle having a bogus
84
83
        # file in the way
85
 
        add.smart_add_tree(wt, ['.'])
 
84
        wt.smart_add([])
86
85
        verify_status(self, wt,
87
86
                          ['added:\n',
88
87
                           '  six\n',