/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/inventory_implementations/basics.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-10-25 21:16:12 UTC
  • mfrom: (2938.2.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20071025211612-mmsxejad9v1cu5c3
Handle empty inventories in Inventory.copy().

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
        self.assertEqual('some-tree-root', inv2.root.file_id)
76
76
        self.assertEqual('hello', inv2['hello-id'].name)
77
77
 
 
78
    def test_copy_empty(self):
 
79
        """Make sure an empty inventory can be copied."""
 
80
        inv = self.make_inventory(root_id=None)
 
81
        inv2 = inv.copy()
 
82
        self.assertIs(None, inv2.root)
 
83
 
78
84
    def test_is_root(self):
79
85
        """Ensure our root-checking code is accurate."""
80
86
        inv = self.make_inventory('TREE_ROOT')