~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testlog.py

  • Committer: Martin Pool
  • Date: 2005-08-24 02:34:24 UTC
  • Revision ID: mbp@sourcefrog.net-20050824023424-67667e2b57c3d7d0
- merge test refactoring from robertc

  More of the common test infrastructure to do with 
  making temporary directories, etc, is now done from a 
  TestCase subclass, and generally have less magic
  compared to unittest. 

robertc@robertcollins.net-20050823111339-fb55b8ce170b20e0

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
 
50
50
class SimpleLogTest(BzrTestBase):
 
51
 
51
52
    def checkDelta(self, delta, **kw):
52
53
        """Check the filenames touched by a delta are as expected."""
53
54
        for n in 'added', 'removed', 'renamed', 'modified', 'unchanged':
61
62
            got = [x[0] for x in getattr(delta, n)]
62
63
            self.assertEquals(expected, got)
63
64
 
64
 
    
65
 
    def runTest(self):
 
65
    def test_simple_log(self):
66
66
        eq = self.assertEquals
67
67
        ass = self.assert_
68
68