~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-05-03 09:47:32 UTC
  • mfrom: (2472.4.2 win32.fixes)
  • Revision ID: pqm@pqm.ubuntu.com-20070503094732-4ypcrctuxb93rwcv
(bialix,r=john,martin) Bugfix #110901: commit message template written
 with native line-endings; corresponding unit tests added

Show diffs side-by-side

added added

removed removed

Lines of Context:
1964
1964
    def assertFileEqual(self, content, path):
1965
1965
        """Fail if path does not contain 'content'."""
1966
1966
        self.failUnlessExists(path)
1967
 
        # TODO: jam 20060427 Shouldn't this be 'rb'?
1968
 
        f = file(path, 'r')
 
1967
        f = file(path, 'rb')
1969
1968
        try:
1970
1969
            s = f.read()
1971
1970
        finally: