~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: 2006-05-23 00:18:26 UTC
  • mfrom: (1724.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060523001826-458fe69c27fc17a7
Merge bzr add performance improvements. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
        
62
62
        self.assert_('src-id' in inv)
63
63
 
64
 
 
65
64
    def test_version(self):
66
65
        """Inventory remembers the text's version."""
67
66
        inv = Inventory()
134
133
        link = inventory.InventoryLink('123', 'hello.c', ROOT_ID)
135
134
        self.failIf(link.has_text())
136
135
 
 
136
    def test_make_entry(self):
 
137
        self.assertIsInstance(inventory.make_entry("file", "name", ROOT_ID),
 
138
            inventory.InventoryFile)
 
139
        self.assertIsInstance(inventory.make_entry("symlink", "name", ROOT_ID),
 
140
            inventory.InventoryLink)
 
141
        self.assertIsInstance(inventory.make_entry("directory", "name", ROOT_ID),
 
142
            inventory.InventoryDirectory)
137
143
 
138
144
class TestEntryDiffing(TestCaseWithTransport):
139
145