~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testinv.py

  • Committer: Robert Collins
  • Date: 2005-10-03 05:27:22 UTC
  • mto: (1393.1.30)
  • mto: This revision was merged to the branch mainline in revision 1400.
  • Revision ID: robertc@robertcollins.net-20051003052722-d9358fdec7f250d7
move checking whether an entry stores text into inventory.py from fetch,py

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
        self.assertEqual((True, False), left.detect_changes(right))
118
118
        self.assertEqual((True, False), right.detect_changes(left))
119
119
 
 
120
    def test_file_has_text(self):
 
121
        file = InventoryEntry('123', 'hello.c', 'file', ROOT_ID)
 
122
        self.failUnless(file.has_text())
 
123
 
 
124
    def test_directory_has_text(self):
 
125
        dir = InventoryEntry('123', 'hello.c', 'directory', ROOT_ID)
 
126
        self.failIf(dir.has_text())
 
127
 
 
128
    def test_link_has_text(self):
 
129
        link = InventoryEntry('123', 'hello.c', 'symlink', ROOT_ID)
 
130
        self.failIf(link.has_text())
 
131
 
120
132
 
121
133
class TestEntryDiffing(TestCaseInTempDir):
122
134