~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_inv.py

  • Committer: Martin Pool
  • Date: 2006-05-23 10:57:02 UTC
  • mfrom: (1725 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1726.
  • Revision ID: mbp@sourcefrog.net-20060523105702-e5de4664cfdb4e8d
[merge] bzr.dev

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