~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_inv.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-09-15 22:33:23 UTC
  • mfrom: (5410.1.3 bzr)
  • Revision ID: pqm@pqm.ubuntu.com-20100915223323-wdun3rsvmw8bfu5a
(jameinel) Fix bug #638034,
 Inventory.entries() should handle the empty inventory. (Daniel Knittl-Frank)

Show diffs side-by-side

added added

removed removed

Lines of Context:
589
589
        self.assertFalse(inv.is_root('TREE_ROOT'))
590
590
        self.assertFalse(inv.is_root('booga'))
591
591
 
 
592
    def test_entries_for_empty_inventory(self):
 
593
        """Test that entries() will not fail for an empty inventory"""
 
594
        inv = Inventory(root_id=None)
 
595
        self.assertEqual([], inv.entries())
 
596
 
592
597
 
593
598
class TestInventoryEntry(TestCase):
594
599