~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/test_smart_add.py

  • Committer: Robert Collins
  • Date: 2005-08-25 01:16:45 UTC
  • mto: (974.1.50) (1185.1.10) (1092.3.1)
  • mto: This revision was merged to the branch mainline in revision 1139.
  • Revision ID: robertc@robertcollins.net-20050825011645-d05861385ffcab32
test adding lists of paths

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
                             (path, None))
60
60
        for path in child_paths:
61
61
            self.assertEqual(child_branch.inventory.path2id(path), None)
 
62
 
 
63
    def test_add_paths(self):
 
64
        """Test smart-adding a list of paths."""
 
65
        from bzrlib.add import smart_add
 
66
        paths = ("file1", "file2")
 
67
        self.build_tree(paths)
 
68
        branch = Branch(".", init=True)
 
69
        smart_add(paths, False, True)
 
70
        for path in paths:
 
71
            self.assertNotEqual(branch.inventory.path2id(path), None)