~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Alexander Belchenko
  • Date: 2007-04-30 19:52:44 UTC
  • mto: This revision was merged to the branch mainline in revision 2478.
  • Revision ID: bialix@ukr.net-20070430195244-pxc5r3x72ckh027e
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: