/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/test_inv.py

  • Committer: Robert Collins
  • Date: 2006-05-23 00:07:45 UTC
  • mfrom: (1713.1.14 add)
  • mto: This revision was merged to the branch mainline in revision 1725.
  • Revision ID: robertc@robertcollins.net-20060523000745-bb199f02c3b1e5e7
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